OFPEC Forum

Addons & Mods Depot => OFP - Addons & Mods General => Topic started by: scud on 31 Oct 2003, 04:58:58

Title: Damage control
Post 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?
Title: Re:Damage control
Post by: Adamsjebo on 31 Oct 2003, 05:51:53
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.
Title: Re:Damage control
Post by: scud on 31 Oct 2003, 06:09:41
yeah thats in editor but I want to know if I can do it in the actual model construction
Title: Re:Damage control
Post by: Kaliyuga on 31 Oct 2003, 06:38:56
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

Title: Re:Damage control
Post by: scud on 31 Oct 2003, 06:47:55
oh well
just a thought


thanx anyway