The forum has been set to read-only mode. For community discussion and questions, head over to our Discord: https://discord.taleoftwowastelands.com

help with scripting

General mod discussion and requests.
Post Reply
Carter
Posts: 67
Joined: Thu Sep 25, 2014 9:20 pm

help with scripting

Post by Carter » Sun Oct 11, 2015 12:30 am


ScriptName GSMainFloorLightSwitchScript


 


ref LightSwitchPower1DogmeatsGS


ref LightSwitchNoPower1DogmeatsGS


 


Begin OnActivate


 


if LightSwitchPower1DogmeatsGS == 0


set LightSwitchPower1DogmeatsGS to GetLinkedRef


set LightSwitchNoPower1DogmeatsGS to GetLinkedRef


endif


 


if LightSwitchPower1DogmeatsGS.GetDisabled


LightSwitchPower1DogmeatsGS.Enable


LightSwitchNoPower1DogmeatsGS.Disable


else


LightSwitchPower1DogmeatsGS.Disable


LightSwitchNoPower1DogmeatsGS.Enable


endif


 


Activate


 


End


 


I have been out of modding for too long and I forgot everything I knew


Post Reply