Jump to content
Sign in to follow this  
febriannas

addaction, getin nearest static or car to the group

Recommended Posts

i have this addaction code assign to a car init, to make the group of "zzzz1" get in to nearest, in nearest car, in this example "truck1"

but nothing is happening

getin1 = truck1 addaction ["<t color='#FF0000'>Getin!</t>", {_wp1 = group zzzz1 addWaypoint [ getPos truck1, 1]; [ group zzzz1, 1] setWPPos getPos truck1; [ group zzzz1, 1] setWaypointType "getin";}];

maybe can you guys show me the right way to do it?

and one more what is the action to setpos to mount a static weapon? because setposATL getposATL, not making the unit mount the static.

Share this post


Link to post
Share on other sites

Your _wp1 must be global.

Last example in notes section of the addAction Wiki.

Edited by JShock

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  

×