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

Title: Headlight
Post 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
Title: Re:Headlight
Post by: Jester on 02 Feb 2003, 02:33:20
I get an error in the setvelocity [0,0,1] says its invalid.
Title: Re:Headlight
Post by: Liquid_Silence on 02 Feb 2003, 15:10:51
Corrected
Code: [Select]
;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"