yair1221 Posted August 6, 2010 Share Posted August 6, 2010 Is there a way to tell an actor to kill multiple targets? i dont mean to make Civmale hostile to cops or criminals and stuff simply to give him a command like that 05E2: AS_actor [email protected] kill_actor [email protected] does that command works for multiple targets? Link to comment Share on other sites More sharing options...
toonskull Posted August 6, 2010 Share Posted August 6, 2010 (edited) Is there a way to tell an actor to kill multiple targets?i dont mean to make Civmale hostile to cops or criminals and stuff simply to give him a command like that 05E2: AS_actor [email protected] kill_actor [email protected] does that command works for multiple targets? This code would make the killer [email protected] hunt down the targets in order until dead. 05E2: AS_actor [email protected] kill_actor [email protected] :loop1wait 0ifActor.Dead ([email protected])jf @loop105E2: AS_actor [email protected] kill_actor [email protected] :loop2wait 0ifActor.Dead ([email protected])jf @loop205E2: AS_actor [email protected] kill_actor [email protected] :loop3wait 0ifActor.Dead ([email protected])jf @loop3 This code would make the killer shoot at each live target for 2 second bursts. :loop1wait 0ifnot Actor.Dead ([email protected])jf @loop205E2: AS_actor [email protected] kill_actor [email protected] wait 2000:loop2ifnot Actor.Dead ([email protected])jf @loop305E2: AS_actor [email protected] kill_actor [email protected] wait 2000:loop3ifnot Actor.Dead ([email protected])jf @loop305E2: AS_actor [email protected] kill_actor [email protected] wait 2000:loop3jump @loop1 If you don't care who the killer is shooting at then: 05E2: AS_actor [email protected] kill_actor -1 oops almost forgot, there is also "define pack and assign pack" you should look into that too. Edited August 6, 2010 by toonskull Link to comment Share on other sites More sharing options...
yair1221 Posted August 6, 2010 Author Share Posted August 6, 2010 thanks but the last opcode works great,the 05E2: AS_actor [email protected] kill_actor -1 it attacks every car in sight Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now