Jump to content
Sign in to follow this  
george86

Forcing rpg tto fire for ambush!

Recommended Posts

guys just wonder how i would force an rpg malitia unit to start ambush by firing RPG at a unit...Ive found this :

"in init of a guy with an rpg this dowatch HU; this doTarget HU"

where HU is the name of the chopper (it can be any object)

then in a trigger i put on act:

Code:

m1 action [""useWeapon"",m1,m1,1]

But trigger on act says "missing ]" Any ideas? :confused:

Share this post


Link to post
Share on other sites

You need to remove the double-double quotes around useWeapon. Just one pair of double-quotes: "useWeapon"

Share this post


Link to post
Share on other sites

info on useWeapon, can you spot the difference?

gameLogic action ["useWeapon",vehicle unit1,unit1,0]

also i use fire command in my AI shoots flares script and that works fine, maybe have a look into that instead.

edit: damn, ninjaed while looking at multiple posts.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×