Home   Help Search Login Register  

Author Topic: Headlight  (Read 1971 times)

0 Members and 1 Guest are viewing this topic.

cpt.Hawkeyez

  • Guest
Headlight
« 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
« Last Edit: 29 Jan 2003, 05:21:43 by CymPaTheeY »

Jester

  • Guest
Re:Headlight
« Reply #1 on: 02 Feb 2003, 02:33:20 »
I get an error in the setvelocity [0,0,1] says its invalid.

Liquid_Silence

  • Guest
Re:Headlight
« Reply #2 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"