OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: CHEEKYBOY105 on 31 Jan 2004, 19:34:57
-
I have a prision and it has west men in it but i cant stop the east from shooting them how do u stop soldiers shooting the west so it is like a real prision.
-
I have a prision and it has west men in it but i cant stop the east from shooting them how do u stop soldiers shooting the west so it is like a real prision.
-
Easy.... ;D
in the west guys init fields type this
this setcaptive true
Then the east ppl will not shoot any of your prisoners...
However I'm not sure about if you make an escape senario how to make east shoot west when west is outside prison.
Probaly has to do with a trigger that states
west units setcaptive true????
then another with a bigger trigger that states
west units setcaptive false?????
-
well, if ya name the prisoners in their NAME fields when created
then its easy to add "This setCaptive True" to their INIT fields and
setup a trigger (covering the cell - make it rectangular if needed).
And then in the triggers condition field put:
!(bob in thisList) || !(Rob in thisList) etc. ...
...with the following in the activation field:
bob setCaptive false; Rob setCaptive false (etc.)
so that if any prisoner is trying to escape, they're all
considered dangerous again & will be shot.
(p.s. Bob & Rob being the unitNames of them prissy's right!)
PPS:
off course ya can also setup individual conditions foreach prisoner :-*