OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Contra on 03 Jan 2003, 05:22:36
-
Hey, I got some questions that I think should be pretty easy to answer:
1)I want to make soldier fire when somebody enters the trigger range. How do I prevent the soldier from firing before the enemy enters the trigger range?
2)When I make a soldier put their hands up (unitname switchmove "FXStandSurUniv") why can't I kill them after?
3)Is it possible to make a squad walk slowly? I tried setting their waypoint speed to limited, but they still run when they have their weapons drawn. I want to make a marine patrol a jungle with their weapons out, but I want them to be walking at the same time.
4)How do you force a unit to stay standing up when engaged? (I want the soldier to shoot out of a window.)
Whew! That's allâ€Â¦ For now. :)
Thanks in advance.
-
1. set the guys combat mode to blue, like this
unitname setCombatMode "BLUE"
then when the trigger is activated set it to "red"
2. they do die they just stay in the same position, try making a trigger with this as the condition
getdammage unitname > 0.9
and in the activation field put
unitname switchmove ""
I think that will work I can't really remember :-\
3. no not really, I think thats the best there is.
4. put this in its init field
unitname setunitpos "up"
-
2. they do die they just stay in the same position, try making a trigger with this as the condition
getdammage unitname > 0.9
and in the activation field put
unitname switchmove ""
I think that will work I can't really remember :-\
That is correct. However, I've had bad experiences using the switchMove command when trying to make soldiers look like they surrendered. It seems to disable the AI. Then again, since Contra's units will be killed anyway, I guess it doesn't matter.
-
Thanks for the help guys.
It's too bad that you can't make a unit walk with their weapons out, though.
-
I was told there was a way to make the soldiers walk with their weapons out, but he didn't know how. So... Does anybody know?
He said it had something to do with "switchmove/playmove".