how do i let a civillian shoot on a guy that steals his car?
how do i let a civillian shoot on a guy that steals his car?
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
Online 1.08 face reference gallery
UPDATED ! My interim musicspace with excerpts from commercial productions UPDATED !
NOTE to 1.08 users who have missing weapons: Remove custom addons !
but i only want the civillian fire at me, when i steal the car
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.
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
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
it doesn't work![]()
the civillian isn't doing anything
I hope you have added a weapon to the civi? also try making him shoot the car instead of the player.
RED
thanks it works![]()
thank you very much