Difference between revisions of "SetNPCRadio"

From GECK

m (Robot: Automated text replacement (-\[\[Category:(.*?)\(GECK 1.0\)\]\] +Category:\1(GECK 1.1)))
(Updating radio details)
 
Line 15: Line 15:
 
**1 = Radio is on
 
**1 = Radio is on
 
*If the NPC is listed as the speaker of a line of dialog, he will speak it. If he is not the speaker, it plays with a filter effect to indicate it's not him.
 
*If the NPC is listed as the speaker of a line of dialog, he will speak it. If he is not the speaker, it plays with a filter effect to indicate it's not him.
 +
*You cannot change an NPCs currently playing station with this function without first using it to turn their radio off, for example by calling:
 +
BobRef.SetNPCRadio 0 GalaxyNewsRadioRef
 +
BobRef.SetNPCRadio 1 EnclaveRadioRef
  
 
[[Category:Functions]]
 
[[Category:Functions]]

Latest revision as of 10:24, 28 June 2010

Description

SetNPCRadio designates an NPC as a radio.

Syntax

[npcRef.]SetNPCRadio 0/1 stationRef

Examples

BobRef.SetNPCRadio 1 GalaxyNewsRadioRef 

Bob is now a radio that is playing Galaxy News Radio.

Notes

  • Definitions for the 0/1 parameter:
    • 0 = Radio is off - turns off the radio regardless of the called reference
    • 1 = Radio is on
  • If the NPC is listed as the speaker of a line of dialog, he will speak it. If he is not the speaker, it plays with a filter effect to indicate it's not him.
  • You cannot change an NPCs currently playing station with this function without first using it to turn their radio off, for example by calling:
BobRef.SetNPCRadio 0 GalaxyNewsRadioRef 
BobRef.SetNPCRadio 1 EnclaveRadioRef
Personal tools