Home   Help Search Login Register  

Author Topic: STR_ACTION_LIGHT_ON  (Read 759 times)

0 Members and 1 Guest are viewing this topic.

Offline 999chris

  • Members
  • *
  • I'm a llama!
STR_ACTION_LIGHT_ON
« 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.

Offline dmakatra

  • Members
  • *
  • Better known as Armsty
Re:STR_ACTION_LIGHT_ON
« Reply #1 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:

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re:STR_ACTION_LIGHT_ON
« Reply #2 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
« Last Edit: 07 Apr 2005, 01:32:11 by Planck »
I know a little about a lot, and a lot about a little.

Offline 999chris

  • Members
  • *
  • I'm a llama!
Re:STR_ACTION_LIGHT_ON
« Reply #3 on: 07 Apr 2005, 22:58:13 »
So what use is that? I want the light to be kept on

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re:STR_ACTION_LIGHT_ON
« Reply #4 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
I know a little about a lot, and a lot about a little.

Chris330

  • Guest
Re:STR_ACTION_LIGHT_ON
« Reply #5 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