OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Dingmatt on 10 Feb 2005, 12:51:15

Title: Drop Partical array and other help!!
Post by: Dingmatt on 10 Feb 2005, 12:51:15
I need help, on 2 things actually the first being i want to attach a damage script to a partical - basically you get hurt it a dust cloud drifts by you.
and secondly i need to be able to create a array for all the vech and units in a certain area (300m) but without giving them all names (like a search type script of something?).

Does anyone have any ideas? please, i'm really stumped...


Dingmatt
Title: Re:Drop Partical array and other help!!
Post by: macguba on 10 Feb 2005, 14:17:51
1.  Don't quite understand.   If you want to create a dust cloud use the command drop.

2.  Create a trigger over the area, activation Anybody present.   The trigger array contains all the units in the trigger area and is dynamic.    Use it in the On activation field as thislist, for example

thislist select 0 setCaptive true

or in a script, for example

_array1 = list triggerName

Syntax not guaranteed.    _array1 will update dynamically as units enter and leave the trigger area.   It makes no difference if the trigger has fired or not.   Use East, West or whatever as you like instead of Anybody.    It makes no difference whether the second setting is detected by, not present, or whatever.
Title: Re:Drop Partical array and other help!!
Post by: nominesine on 10 Feb 2005, 14:39:33
I understand, but I can't help you :-) But I'll try anyway...

You want to create a moving dustcloud, right? In that case the trigger wont work, since triggers aren't moveable units. Make the dust cloud emanate from a game logic. This unit you can move across the battlefield with a script. Then apply damage to any unit who comes within a certain distance of the game logic.

Hope that helps.
Title: Re:Drop Partical array and other help!!
Post by: Sui on 11 Feb 2005, 02:59:30
In that case the trigger wont work, since triggers aren't moveable units....

Not quite... they can be moved using setpos commands. They won't move on their own though... ;)