OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Captain Winters on 29 Jun 2003, 03:13:32

Title: Fire script problem
Post by: Captain Winters on 29 Jun 2003, 03:13:32
This is a simple little script I made up to set a fire's postion constantly to the specified tanks position...:

Code: [Select]
_armour = this _select 0
_fire = this _select 1

getDammage _armour if < 0.8
_fire inflame true
#loop
_fire setPos getPos _armour
~0.0001
goto "loop"

I always get this error:

(http://www.freewebs.com/sprpcg/serror.JPG)

...

Any ideas??

Tanks! 8)
Title: Re:Fire script problem
Post by: LCD on 29 Jun 2003, 03:18:30
it shud b

Code: [Select]
_armour = this _select 0
_fire = this _select 1

@ getDammage _armour > 0.8
_fire inflame true
#loop
_fire setPos getPos _armour
~0.0001
goto "loop"

i think ;D

LCD OUT
Title: Re:Fire script problem
Post by: Captain Winters on 29 Jun 2003, 04:04:57
God, LCD! How many times u help me today? I lost count around 7 or eight  ;D thanks bud!

Tanks! 8)