Results 1 to 9 of 9

Thread: How to let a civillian shoot at a car?

  1. #1

    Unhappy

    how do i let a civillian shoot on a guy that steals his car?

  2. #2
    add weapon to civ
    check if player is in car, with a trigger.

    let civilian dotarget car or player
    let civilian dofire car or player

  3. #3
    Private First Class
    Join Date
    Aug 31 2002
    Posts
    26
    Author of the Thread
    but i only want the civillian fire at me, when i steal the car

  4. #4
    so what´s the problem ?
    I assume entering the civillian car IS assumed stealing.
    Let the trigger fire 2 or 3 seconds after you entered the car if you want to make it a real thinking process for the civillian:
    somebody is entering my car -> 2 or 3 sec later -> hm mybe he is trying to steal it *Ping* -> I will shoot him.

  5. #5
    Private First Class
    Join Date
    Aug 31 2002
    Posts
    26
    Author of the Thread
    i don't understand: what do i have to put in the INIT of the carstealer, the civillian and the empty vehicle

    and what do i have to do with the trigger?

    please help me

    or could you send me an example mission? my e-mail is

  6. #6
    Make a trigger (size 0,0) in the triggers condition field put:

    </span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE">player in carname[/QUOTE]<span id='postcolor'>

    Substitute "carname" with the name of your car. Then in the triggers onactivation field put:

    </span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE">civi dotarget player; civi dofire player[/QUOTE]<span id='postcolor'>

    Change civi to the name of your civillian.

    RED

  7. #7
    Private First Class
    Join Date
    Aug 31 2002
    Posts
    26
    Author of the Thread
    it doesn&#39;t work

    the civillian isn&#39;t doing anything

  8. #8
    I hope you have added a weapon to the civi? also try making him shoot the car instead of the player.

    RED

  9. #9
    Private First Class
    Join Date
    Aug 31 2002
    Posts
    26
    Author of the Thread
    thanks it works

    thank you very much

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •