Jump to content

Need help with a script - trying to make a radio station turn off when I enter the radio HQ


Recommended Posts

does anyone know how to make a radio station turn off when you enter a certain building? It doesn't really make sense for the station to be playing while I'm inside the hq talking to the radio host.

Radio ref: 00legionradio

radio quest ref: 00legionradioquest

radio hq ref: 00legionradiostationhq


My current script is:    

ScriptName 00legionradioSCRIPT

BEGIN GameMode

    if Player.GetInCell 00legionradiostationhq == 1 
        00legionradio.Disable
        ForceRadioStationUpdate
    endif

    elseif Player.GetInCell 00legionradiostationhq == 0
        00legionradio.enable
        ForceRadioStationUpdate
        stopQuest 00legionradioquest
        resetQuest 00legionradioquest
        startQuest 00legionradioquest
    endif

END 

 

Any help would be appreciated!

Thanks

Link to comment
Share on other sites

ScriptName legionradioenterhqSCRIPT

BEGIN GameMode

    if Player.GetInCell legionradiostationhq == 1 
       legionradioterminal.disable
        ForceRadioStationUpdate
    endif

   if Player.GetInCell legionradiostationhq == 0
       legionradioterminal.enable
        resetQuest 00legionradioquest
        startQuest 00legionradioquest
    ForceRadioStationUpdate
    endif

END

 

This worked! ^

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...