Stalker1979 10 Posted January 10, 2011 Hi, i wonder how can I script these things in Arma, (If possible): 1) Can I make a script that will spawn satchel charges on certain places that can latter be touched off by someone? Not to make a unit place them, but rather to spawn them immediately via a script, owned by a certain unit (he can detonate them). 2) How do I prevent the player from exiting (ejecting) from a vehicle if I don't want him to do so, before a, say, certain waypoint is reached? I want to remove this option from his action menu. Thanks. Share this post Link to post Share on other sites
joske 10 Posted January 12, 2011 1) I am pretty sure it is impossible to actually spawn a "live" satchel charge from the editor but what you can do is make the unit in question place the satchel once the mission starts. you can do this by placing a waypoint (on the spot where you want the satchel) and in the on activation field place: Unitname fire "pipebombmuzzle" to make the unit set off the satchel place another waypoint from where you want the unit to set the satchel off and put this in the activation field: Unitname action ["TOUCHOFF", Unitname] If you want the player to do this and make him start with the active satchels you can try to first make the ai unit place the satchels and then switch the player over from another unit. http://community.bistudio.com/wiki/selectPlayer 2) I am also pretty sure there is no way you can delete actions that are present by default (vehicle actions etc) what you can do is make a trigger with as a condition the in vehicle commandhttp://community.bistudio.com/wiki/in_vehicle with a ! to check if the player is not in the vehicle something like this : !(player in heli) And the in the on activation line something like: player moveInCargo heli This should have the effect that every time you try to jump out of the heli you get automaticaly put back in. Share this post Link to post Share on other sites
armatech 8 Posted January 13, 2011 2. just lock the vehicle Share this post Link to post Share on other sites
Stalker1979 10 Posted January 13, 2011 Thanks for the replies. I guess I'll just be using the createVehicle for my phase line explosives then, spawning a Laser guided bomb or HE round produces the similar effect as satchel. Share this post Link to post Share on other sites
demonized 20 Posted January 15, 2011 Im pretty sure you can just spawn a game logic near your ied and then use that to place and touchoff the ied when a condition is reached. Untested though, may not be able to use inventory of gl. Share this post Link to post Share on other sites
Koni 3 Posted January 23, 2011 2. To lock the vehicle ----------------------- vehiclename lock true; To unlock the vehicle -------------------------- vehiclename lock false; Share this post Link to post Share on other sites