OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Insanoblan on 25 Aug 2002, 07:04:12
-
How do i make a trigger that kills someone once they enter?
-
:cheers:I got the following from Operation Flashpoint: Mission Editor Uber Reference Guide by Merciless Creations
How to make easy Anti
Personnel Mines Talbot Mines and Traps
9/13/01
5:01:43
PM
I just figured out how to make easy anti-personell mines that requires no script whatsoever. All you
need is:
An empty Mounted MG (don't worry, it wont be visible).
A trigger.
And (optional) a mine.
How to: Create the MG. Name it MG1 (or whatever u prefer...but i'll use MG1). Place this line in it's
init field:
this setpos [getpos this select 0, getpos this select 1, (getpos this select 2) -2] .
That will place it under ground, and not visible (duh) .
Now create the trigger. Make it small, like 2x2, and place it over the MG. Do NOT set the activation to
"anybody", since that will mean the MG will explode right away. Add "MG1 setdammage 4" (without
quotes) in it's On Activation field.
Now, once someone steps over the trigger, the MG will explode and kill the guy who walked over it.
Tada...if u want, u can now place a real mine over the 'buried' MG.
This should work for ya. The above mentioned tut can be downloaded from thier site: http://www.MercilessCreations.com :cheers:
-
...yes... that will work... ;)
But exploding MG's is an old, old trick that has long been in disuse. Ever since some bright spark discovered that you can camcreate munitions, it's been much easier (cleaner and cleverer) to use camcreate to make an explosion, rather than blowing up an MG. Try something like this
Trigger
Radius: about the size of an AP mine
Condition: Anyone present
Condition Field: this
OnActivation Field: boom = "grenade" camcreate getpos (thislist select 0)
-
Wont naming each unit and setting triggers around the area you dont want them to enter work. Like tell the trigger to set the dammage of that unit to like 4(i think that will waste him).
-
Wont naming each unit and setting triggers around the area you dont want them to enter work. Like tell the
trigger to set the dammage of that unit to like 4(i think that will waste him).
setdammage 1 on a unit let the unit die.
With setdammag 4, the unit won't be more dead than with setdammage 1.
Also the big-bada-boooom effect won't be there ;)
~S~ CD
-
Hi,
Can anyone tell me if it is possible to carry an anti-personel mine made in this way and then put it where ever you choose?
Jeff