| 10-01-2004, 07:03 AM | #1 |
Now, ive looked over and over again after the thing i thought ive seen for some time ago: what custom script do i add in my trigger to clear the variables? for the moment i only got 3 variables who needs to be cleared: Point - array Real Special Effect - array Thx on advance |
| 10-01-2004, 12:22 PM | #2 |
I'm not sure what you mean by clear... If you mean like reseting the variable, you should set the real to 0, loop through the arrays and set the array items to null. If you mean destroying the content of the variable - to prevent leaks - use RemoveLocation on the items of the location (Point) array and DestroyEffect on the items in the effect (Special Effect) array. |
| 10-01-2004, 03:18 PM | #3 |
well, thx but... what shall i write in the action: "custom code" ?!?! |
| 10-01-2004, 10:14 PM | #4 |
You mean: Custom Script: call RemoveLocation(udg_YourVar[array number]) This is for the point, your variable has to be prefixed with a udg_ because it is a global one. There is a normal GUI action for destroying special effects. |
