meta data for this page
Action denied
Objects/NetworkEvents/EventDoorController.lua
This is the event class that belongs to DoorController.
26 EventDoorController = EventDoorController or ExtensionOf(BaseEvent); 27 28 InitVanillaEvent(EventDoorController, "EventDoorController"); 29 30 function EventDoorController:sendData(object, state, jump) 31 streamWriteString(object.savegameKey); 32 streamWriteBool(state); 33 streamWriteBool(jump); 34 end; 35 36 function EventDoorController:receiveData(connection) 37 local savegameKey = streamReadString(); 38 local state = streamReadBool(); 39 local jump = streamReadBool(); 40 41 local object = g_scenario:getObjectBySavegameKey(savegameKey); 42 43 if object ~= nil then 44 object:setState(state, jump, true); 45 46 self:broadcastEvent(connection, object, state, jump); 47 end; 48 end;
Copyright
All contents of this page may be used for modding use for Winter Resort Simulator - Season 2 only. Any use exceeding this regulation is not permitted.
Copyright (C) HR Innoways, 2021. All Rights Reserved.