Jump to content
Sign in to follow this  
Queleab

AI planting Explosive

Recommended Posts

I can't get that to work, can't figure out what I do wrong.

I am doing so:

unit addMagazines ["SatchelCharge_Remote_Mag",1];

On Act of the waypoint where it should put the explosive:

unit fire ["pipebombmuzzle", "pipebombmuzzle", "SatchelCharge_Remote_Mag"];

init line of the waypoint where i want the unit to set it off.

unit action ["TOUCHOFF", unit]

can someone help me? :confused:

Share this post


Link to post
Share on other sites

The unit should have space on its inventory so the addmagazine command would work, with an regular NATO Rifleman he wouldn't get the Satchel Charge because he has no inventory space. Try giving him a backpack or clear his inventory or even try an smaller explosive.

Tested here taking all his weapons off and everything is working fine.

Share this post


Link to post
Share on other sites

i tried with bigger backpack and now it works ;)

Thank you Lucas

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  

×