OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: dan ick on 12 Jan 2005, 00:36:43

Title: I NEED HELP AGAIN
Post by: dan ick on 12 Jan 2005, 00:36:43
Q1.HOW do i get a soldier to put a satchel charge down,but not set it off till the vehicle arrives,i know syncing and stuff like that i just dont know the command for just placing the charge without a timer.
Q2.When i have a soldier in the playmove "FXStandSurUniv",how come I cant kill the MOTHER.IF anyone knows a way round this could they leave a EXPLANATION FOR NOOBULATORS.
                                THANKS ??? :'(
Title: Re:I NEED HELP AGAIN
Post by: Pilot on 12 Jan 2005, 00:49:43
1) soldier fire ["put", "pipeBomb"]

2) You will have to check when he is dead, then bring him out of the playmove.  Use this script. ex.

Code: [Select]
#Loop
?!alive _man: goto "End"
~.1
goto "Loop"

#End
_man switchmove "deadstate"
exit

You can also use
Code: [Select]
_man switchmove ""
I hope that helps!

EDIT:
Using
Code: [Select]
_man switchmove "FXStandSurDead"gives a better result.
Title: Re:I NEED HELP AGAIN
Post by: Silencer on 12 Jan 2005, 17:59:06
Hi,

I have made a very simple test mission for you, so you won't have to use scripts.
- In C:\Operation Flashpoint\Users\DanIck\missions     Make a map called DanIck.Noe
- Put the mission.sqm in it.
- Goto the mission editor, and test it. 8)
Title: Re:I NEED HELP AGAIN
Post by: dmakatra on 12 Jan 2005, 18:03:47
Making a script is just unneccesary, you get the same result in a trigger:

condition: !(alive man1)
on act: man1 switchmove " "

:beat: *Gets Shot* :beat: