OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: 999chris on 07 Apr 2005, 00:12:36

Title: STR_ACTION_LIGHT_ON
Post by: 999chris on 07 Apr 2005, 00:12:36
Looking through the OF Unnoficial Command reference about actions and stuff... Is this: STR_ACTION_LIGHT_ON the right command if you will...

WHats the actual script to use when I want a driver of a UAZG to turn on his lil light? BTW the time is about 8pm on Thursday the 5th Of December. and Its raning. If I turn the light on myself it illuminates. Cheers.
Title: Re:STR_ACTION_LIGHT_ON
Post by: dmakatra on 07 Apr 2005, 00:14:36
'ave a lil' lookey here:

http://www.ofpec.com/yabbse/index.php?board=6;action=display;threadid=9376

and see if you find something. ;)

:beat: *Gets Shot* :beat:
Title: Re:STR_ACTION_LIGHT_ON
Post by: Planck on 07 Apr 2005, 01:19:36
Hmmmm...As madkatra says......lookee there, but also.......

vehiclename action ["light On",vehiclename]

vehiclename action ["light On"] also works.

Edit:   The AI will swtch them off or on again if they don't want them off/on.


Planck
Title: Re:STR_ACTION_LIGHT_ON
Post by: 999chris on 07 Apr 2005, 22:58:13
So what use is that? I want the light to be kept on
Title: Re:STR_ACTION_LIGHT_ON
Post by: Planck on 08 Apr 2005, 00:07:16
Its like this:

If the AI are in 'stealth' mode they will keep the light off, even when you tell them to switch it on.

If they are not in 'stealth' mode they might decide to keep the lights on.


Planck
Title: Re:STR_ACTION_LIGHT_ON
Post by: Chris330 on 08 Apr 2005, 08:46:16
Edit:   The AI will swtch them off or on again if they don't want them off/on.

This is a great way to simulate a nightclub scene in a cutscene. Have a truck parked next to a building in the dark and have his behaviour set to stealth IIRC. Set off loads of smoke shells and run a loop which turns the lights off every 0.1 seconds or so. As soon as the lights get turned off the AI turns them back on crating a strobe effect which looks cool against the smoke shells :D Place a guy between the truck and building and put some chairs next to him too. One simulated nightclub :D