OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: MythPro1 on 09 Oct 2002, 17:24:49
-
In the only mission that I ever work on :D I have a long truck ride to the end of the mission. I want to make it more interesting so I figured a firing squad would work well. I know what I need to do but not the code. I would set up a trigger when the truck got to a certain point and have East fire at unarmed west units. Use the remove weapon code for the troops and I believe target(name) for the east and dofire or what not.
Hey i'm trying ;D
-
[attachment deleted by admin]
-
Hmm.... why can't you just make the West soldiers captives using:
this setcaptive true
in their inits...
and then when you want em to get shot change it to
unitname setcaptive false
in a trigger or waypoint of the East squaddies...
Once they're no longer captive, the East guys should bust a cap in em all by their selves... eliminates the whole dotarget, dofire stuff ;D
-
yup! 'tis what my sample shows too (plus a few old tricks) 8)
-
Thanks Tomb appreciate all the help you've given me. :afro:
True Kaliyuga but then i figured that the East will just fall prone and do it that way.
-
this setunitpos "up"
really.. get a copy of the command references ;D
-
Yep did, but Tomb I have arrived to a problem. I grouped the "surrendering" soldiers together and called them Morons just like in your sample. But if I do "_x switchmove ""FXStandSurUniv"" Foreach morons" it doesnt work, something like Typed String Unknown.... forgot rest I know what it means but its typed exactly like the one in your sample but I won't cooperate. :'( :'(
-
"_x switchmove ""FXStandSurUniv"" Foreach morons"
"_x switchmove ""FXStandSurUniv""" Foreach morons