OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: MythPro1 on 09 Oct 2002, 17:24:49

Title: How to make a firing squad
Post 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
Title: Re:How to make a firing squad
Post by: Tomb on 09 Oct 2002, 22:03:34


[attachment deleted by admin]
Title: Re:How to make a firing squad
Post by: Kaliyuga on 09 Oct 2002, 22:15:22
  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
Title: Re:How to make a firing squad
Post by: Tomb on 10 Oct 2002, 01:13:08
yup!  'tis what my sample shows too (plus a few old tricks)  8)
Title: Re:How to make a firing squad
Post by: MythPro1 on 10 Oct 2002, 03:04:12
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.
Title: Re:How to make a firing squad
Post by: Kaliyuga on 10 Oct 2002, 03:07:18
this setunitpos "up"


really.. get a copy of the command references ;D
Title: Re:How to make a firing squad
Post by: MythPro1 on 10 Oct 2002, 17:16:05
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.  :'(  :'(
Title: Re:How to make a firing squad
Post by: Tomb on 11 Oct 2002, 10:15:07
Quote
"_x switchmove ""FXStandSurUniv"" Foreach morons"

"_x switchmove ""FXStandSurUniv""" Foreach morons