OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: bmgarcangel on 01 Apr 2003, 06:05:54
-
Hey guys,
Ok two questions, first, how do you make a soldier put his hands behind his head, second, how do you get that StrokeFist thing to work on a soldier?
Brendan G
-
Hands Behind Head:
unitname switchMove "FXStandSurUniv"
unitname playMove "StandStrokeFist"
OK! ;D cool
They all work correctly, just make the activation in the trigger the side that is the soldier's side then in the on activation put one of those commands
-
Don't forget to use "removeallweapons this" before you use the strokegun code. ;)
Wait, this makes no sense. Ignore it.
-
It will work to with a gun, he puts his hands behind his back... with the playMove commands
but if you want no weapons yes put this:
removeAllWeapons this; unitname playMove "FXStandSurUniv"
-
RRrrrrrrr.........I know the removeweaponscommand and alot of others ok guys.
Anyways, I tried both, and both work. One thing. or actually two things. First off, the strokefist thing, what could that be used for?
Second thing, its weird when the guy puts his hand behind his back you know, and if you shoot him up he'll remain standing but he is actually dead you know.
-
Hello
Question 1:
What can you do to make it look like a person is punching someone else, and have the other person fall over?
Question 2:
How to make a person fall down after getting shot when he is in a switchMove/playMove?
Answer 1:
Have two people (West and East Soldier)
Name them w1 and e1, in each Initilization Field put this setCaptive true; this setBehaviour "CARELESS"; removeAllWeapons this;.
Lets have the West soldier punch the other guy.
Put them in front of each other west --> o o <-- east
Have the East soldier (e1) move in front of the West soldier (w1),by using a waypoint. Have a trigger Axis A: 5 Axis B: 5, Rectangle, Activation: East - Present, and put this in the On Activation Field: w1 playMove "StandStrokeFist"; e1 playMove "CombatRunBDyingVer2". Put the trigger over the waypoint that is close to the West soldier (w1). Give room so when (e1) starts to punch, (w1) is still running to (e1) and then when (w1) punches, (e1) falls of backwords. It will look like a man running to another and gets hit and falls over.
Might need to move around things to get it right.
Answer 2:
Make two soldiers (Player and AI) name the AI - s1. In the Initilization Field of (s1) put:
s1 switchMove "FXStandSurUniv"
Make a trigger Axis A: 0 and Axis B: 0, in the Condition Field put this:
NOT alive s1
and in the On Activation put this:
s1 switchMove "EffectStand"
or
s1 switchMove "Null"
This will make the person stop what his doing if his in a switchMove/playMove. It will also make the soldier fall over (in this case) after he gets shot.
I hope this helps.
Bye
-
ok ......
I get the second answer but not the first quite well here.
-
Ok then, want me to make the mission for you? or make the picture?
-
yes a mission example would safe me the horror. Please that is1 :-\
-
i will send it to you email when i am done. 5 to 10 minutes
-
I already found out how to do it man. Hmmm...thanks anyways man. here is the mission, is it correctly done?
-
HERE:
hope you like it, sorry it took a long time, more than i said. i needed to do something.
-
OFPwizard, I already made one man