OFPEC Forum
Addons & Mods Depot => OFP - Addons & Mods General => Topic started by: scud on 31 Oct 2003, 04:58:58
-
I have a particular space (area) in an object that when player or AI walk into it they will be killed or wounded.
Is this possible with lod settings or is it done with scripting?
-
This is easy. All you have to do is create a trigger the size you want, and type this if the init field: this setdammage 1. If you only want it to effect a certain unit, than name that unit and replace "this" with the unit you want effected.
-
yeah thats in editor but I want to know if I can do it in the actual model construction
-
nope cant be done in the model it will have to be scripted..
one nice thing though is that as far as I can tell the distance command detects the distance from the center of the object in question so you can use a simple 0x0 trigger with the following condition :
player distance object < .01
you can use the grid in O2 to gauge the distance
-
oh well
just a thought
thanx anyway