OFPEC Forum
Editors Depot - Mission Editing and Scripting => ArmA - Editing/Scripting General => Topic started by: snoopy22 on 26 Nov 2007, 04:32:35
-
How do you turn on a static searchlight that is empty. Ive been trying to get this light to turn on all night X_x. Ive checked the lightison command and it didnt work, engineon didnt work...Anyone help? thanks :)
-
Put a game logic as a gunner in the Searchlight
gamelogicname moveInGunner searchlightname
-
sorry, how do u put a gamelogic as a gunner ? I placed a game logic unit, and was going to make a waypoint for it to go into the searchlight but I only saw "and/or" as options =/
- ah wait my bad I got it lol Thank you :P
#EDIT-removed the unnecessary quote h-
-
Hi there.
I'm new here and a total Noob when it comes to scripting. :dunno:
I'm sitting with the exact same problem as snoopy22 and have tried scripts like: this Inflame true & switchlight "On" , but have had no luck so far...
I can't get "gamelogicname moveInGunner searchlightname" to work either and I've tried swapping the "searchlightname" with a name like S1 and naming the searchlight S1...
Like I said this is my first attempt at scripting and your help would really be appreciated. Although it would have to be as detailed as possible. lol :P
Edit: FINALLY figured it out! :good:
Description: You place a GameLogic ( found under items ) on the map next to your searchlight and name it for example: GL1 ...Then you name your searchlight for example: S1 ...You then type the following in the description section of your GameLogic: GL1 moveInGunner S1 ( that's what the "gamelogicname moveInGunner searchlightname means ) ---> And Presto! You have a bright nice shiny searchlight! :D
Thanx for the help h- !!!
Now all I need to figure out is how to have an AI pilot switch a chopper's lights on when flying at night... ??? ( You can switch on the lights manually when you are the pilot )
-
set the behaviour of the chopper/pilot to "safe" or "careless"
this setbehaviour "safe" - in the init field of the unit. using "careless" may work better
-
AWESOME!! :good:
Thanks Guys! Both problems fixed in one night...
This will really come in handy in the future :D
OFPEC and it's members ROCK! :good:
-
yup we do ;) :cool2:
also
WELCOME 2 OFPEC M8S
and have fun navigatin da sewers of editin :D
LCD OUT