OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting Resources Beta Testing & Submission => Topic started by: cpt.Hawkeyez on 29 Jan 2003, 05:21:12
-
Having some trouble with this script test it out for me you need a soldier named frank and it is [] exec "headlight.sqs"
thanks tell me whats wrong
CymPaTheeY
-
I get an error in the setvelocity [0,0,1] says its invalid.
-
Corrected
;start bookmark
#start
_pos = getpos frank
_flare = "flare" camCreate [_pos select 0, _pos select 1, (_pos select 2) + 1.7]
~0.01
_counter = 0
;loop bookmark
#loop1
_pos = getpos frank
_flare setPos [_pos select 0, _pos select 1, (_pos select 2) + 1.7]
~0.01
_counter = _counter + 0.01
?_counter == 16.8 : deleteVehicle _flare; goto "start"
goto "loop1"