OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Osama The One on 21 May 2003, 13:17:01
-
How do I make anti-personnel mines? Is it possible to take the ordinary mines and add a trigger or waypoint or something? Please explain.
-
Sure.
Place a mine of your choice anywhere on the map, (I've had problems with all mines except for the "Mines" and the "Small Floating Water Mines", they slide down the landscape, very anoying. If you know how to solve the problem then please let me know. :)) Give the mine you've placed on the map a name, (like "mine01") then place a trigger looking like this:
axis a, axis b: any size you wish
activation: here you can put either west, east, resistance, gamelogic, anybody, etc... but if you choose anybody, then make sure the mine isn't in the trigger's range, otherwise it will explode at the start of the mission. And ofcourse choose "present". Example: Activation: Anybody present.
On Activation: mine01 SetDammage 1
Thats it.
-
There are scripts in the Ed Depot for this.
-
Here is an easy way to do this with a trigger:
activation:anybody
size: 2 meter circle (or whatever size you want)
condition:
"man" countType thislist >0
on activation:
apmine="grenade" camcreate getpos (thislist select 0)
This will only activate is there is a "man" in the trigger. The "thislist select 0" part keeps you from having to name every apmine.
:)