OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Gumby on 02 Jun 2003, 08:59:23
-
The question is simple.
But somehow I cant get it to work!
How do I turn off the lights on a moving AI vehicle?
I have a spec ops team, which I want to drive through the night in a car. BUT with the lights turned off.
I have tried using
car action ["light off", car]
Any suggestions???
-
this setbehaviour "stealth"
always does the trick for turning those lights off in a vehicle ;)
:toocool:
-
The AI will only turn on ( turn on ??? ::) ;D ) *cough* uuum, them LIGHTS dammit, if they feel either SAFE or CARELESS; so, any behaviour !=safe || careless is == no stinkin' lights on!
-
THIS WORK NOMATTER WHAT MODE THEY IN (Stealth,safe,aware,ETC.......)
Make a script called anything.sqs
-
In the init field type
[this] exec "anything.sqs"
NOTE ----- I find that if using more than one vehicle name each vehicle or M2 achine gun and instead of using [this] exec "anything.sqs" use instead
[whatevername] exec "anything.sqs" Dont know why they all wont work wit [this]
so use it this way instead unless you know how to do it some other way.
NOTE2 ----- Somebody informed me that because this is a very fast loop that it might cut down performance a little but I have had no trouble dont try to put
~0.1 or even ~0.01 in loop because this need to be very fast otherwise it will look like strobe lights instead HOPE SOMEBODY FINDS BETTER WAY OR BIS FIXES THIS BUG THANKX.
------------------------------------------------
#A
_this select 0 action ["Light Off"]
goto "A"
--------------------------------------------------
Simple Huh
I just found this out ;D ;D ;D
The reason for this is that the action ["Light Off"] command does work! BUT it only turns off for a very split
sec I found this out by using this tool DL from this sight on the bottom of the screen that allows you to type script in the game and execute it LIVE ITS CALLED
(((console1.21.zip))))
http://home.arcor.de/vektorboson/downloads/console1.21BETA.zip
by
Console for OFP by Vektorboson <vektorboson@gmx.de>
for updates see http://home.arcor.de/vektorboson ;D ;D
DOWNLOAD EXAMPLE MISSION WIT SCRIPT HERE!!!!!!!!!!
-
i cannot get this working for the ww2 C47..