<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="FeedCreator 1.8" -->
<?xml-stylesheet href="https://wiki.winterresortsim.com/lib/exe/css.php?s=feed" type="text/css"?>
<rdf:RDF
    xmlns="http://purl.org/rss/1.0/"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
    xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel rdf:about="https://wiki.winterresortsim.com/feed.php">
        <title>WRS Wiki modding:luasource-s2:vehicles:vehiclescripts:networkevents</title>
        <description></description>
        <link>https://wiki.winterresortsim.com/</link>
        <image rdf:resource="https://wiki.winterresortsim.com/lib/tpl/sprintdoc/images/favicon.ico" />
       <dc:date>2026-04-04T19:12:15+00:00</dc:date>
        <items>
            <rdf:Seq>
                <rdf:li rdf:resource="https://wiki.winterresortsim.com/modding:luasource-s2:vehicles:vehiclescripts:networkevents:eventattachersystem?rev=1612891327&amp;do=diff"/>
                <rdf:li rdf:resource="https://wiki.winterresortsim.com/modding:luasource-s2:vehicles:vehiclescripts:networkevents:evententervehicle?rev=1612891327&amp;do=diff"/>
                <rdf:li rdf:resource="https://wiki.winterresortsim.com/modding:luasource-s2:vehicles:vehiclescripts:networkevents:eventplaysinglesound?rev=1612891327&amp;do=diff"/>
                <rdf:li rdf:resource="https://wiki.winterresortsim.com/modding:luasource-s2:vehicles:vehiclescripts:networkevents:eventrefuelvehicle?rev=1612891327&amp;do=diff"/>
                <rdf:li rdf:resource="https://wiki.winterresortsim.com/modding:luasource-s2:vehicles:vehiclescripts:networkevents:eventropewinch?rev=1612891327&amp;do=diff"/>
                <rdf:li rdf:resource="https://wiki.winterresortsim.com/modding:luasource-s2:vehicles:vehiclescripts:networkevents:eventsetanimatedpart?rev=1612891327&amp;do=diff"/>
                <rdf:li rdf:resource="https://wiki.winterresortsim.com/modding:luasource-s2:vehicles:vehiclescripts:networkevents:eventsetmovingpartposition?rev=1612891328&amp;do=diff"/>
                <rdf:li rdf:resource="https://wiki.winterresortsim.com/modding:luasource-s2:vehicles:vehiclescripts:networkevents:eventsnowgroomer?rev=1612891328&amp;do=diff"/>
                <rdf:li rdf:resource="https://wiki.winterresortsim.com/modding:luasource-s2:vehicles:vehiclescripts:networkevents:eventvehiclemotorcruiscontrolenable?rev=1612891328&amp;do=diff"/>
                <rdf:li rdf:resource="https://wiki.winterresortsim.com/modding:luasource-s2:vehicles:vehiclescripts:networkevents:eventvehicleseats?rev=1612891328&amp;do=diff"/>
                <rdf:li rdf:resource="https://wiki.winterresortsim.com/modding:luasource-s2:vehicles:vehiclescripts:networkevents:eventvehiclesetmotoron?rev=1612891328&amp;do=diff"/>
                <rdf:li rdf:resource="https://wiki.winterresortsim.com/modding:luasource-s2:vehicles:vehiclescripts:networkevents:snowcannonevents?rev=1612891328&amp;do=diff"/>
                <rdf:li rdf:resource="https://wiki.winterresortsim.com/modding:luasource-s2:vehicles:vehiclescripts:networkevents:snowsystemevents?rev=1612891328&amp;do=diff"/>
                <rdf:li rdf:resource="https://wiki.winterresortsim.com/modding:luasource-s2:vehicles:vehiclescripts:networkevents:start?rev=1612891328&amp;do=diff"/>
                <rdf:li rdf:resource="https://wiki.winterresortsim.com/modding:luasource-s2:vehicles:vehiclescripts:networkevents:vehiclelightingevents?rev=1612891328&amp;do=diff"/>
            </rdf:Seq>
        </items>
    </channel>
    <image rdf:about="https://wiki.winterresortsim.com/lib/tpl/sprintdoc/images/favicon.ico">
        <title>WRS Wiki</title>
        <link>https://wiki.winterresortsim.com/</link>
        <url>https://wiki.winterresortsim.com/lib/tpl/sprintdoc/images/favicon.ico</url>
    </image>
    <item rdf:about="https://wiki.winterresortsim.com/modding:luasource-s2:vehicles:vehiclescripts:networkevents:eventattachersystem?rev=1612891327&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2021-02-09T18:22:07+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Vehicles/VehicleScripts/NetworkEvents/EventAttacherSystem.lua</title>
        <link>https://wiki.winterresortsim.com/modding:luasource-s2:vehicles:vehiclescripts:networkevents:eventattachersystem?rev=1612891327&amp;do=diff</link>
        <description>Vehicles/VehicleScripts/NetworkEvents/EventAttacherSystem.lua

This file contains all revelant events for the attacher system implemented in Attacher and Attachable.


  25  EventAttachVehicle                  = EventAttachVehicle or ExtensionOf(BaseEvent);
  26  
  27  InitVanillaEvent(EventAttachVehicle, &quot;EventAttachVehicle&quot;);
  28  
  29  function EventAttachVehicle:sendData(master, slave)
  30      streamWriteEntityId(master.vehicle);
  31      streamWriteUInt8(master.networkId);
  32      s…</description>
    </item>
    <item rdf:about="https://wiki.winterresortsim.com/modding:luasource-s2:vehicles:vehiclescripts:networkevents:evententervehicle?rev=1612891327&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2021-02-09T18:22:07+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Vehicles/VehicleScripts/NetworkEvents/EventEnterVehicle.lua</title>
        <link>https://wiki.winterresortsim.com/modding:luasource-s2:vehicles:vehiclescripts:networkevents:evententervehicle?rev=1612891327&amp;do=diff</link>
        <description>Vehicles/VehicleScripts/NetworkEvents/EventEnterVehicle.lua

This file contains all revelant events for entering and leaving vehicles. Clients will send a EventRequestSwitchVehicle event to the server when the player presses the Tab key, and they will send an</description>
    </item>
    <item rdf:about="https://wiki.winterresortsim.com/modding:luasource-s2:vehicles:vehiclescripts:networkevents:eventplaysinglesound?rev=1612891327&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2021-02-09T18:22:07+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Vehicles/VehicleScripts/NetworkEvents/EventPlaySingleSound.lua</title>
        <link>https://wiki.winterresortsim.com/modding:luasource-s2:vehicles:vehiclescripts:networkevents:eventplaysinglesound?rev=1612891327&amp;do=diff</link>
        <description>Vehicles/VehicleScripts/NetworkEvents/EventPlaySingleSound.lua

This file contains an event that triggers a single sound event in VehicleMotor.


  25  EventPlaySingleSound                = EventPlaySingleSound or ExtensionOf(BaseEvent);
  26  
  27  InitVanillaEvent(EventPlaySingleSound, &quot;EventPlaySingleSound&quot;);
  28  
  29  function EventPlaySingleSound:sendData(entity, soundType, soundId)
  30      -- only send sounds on server, because server is the only on, that calculates the sound trigger…</description>
    </item>
    <item rdf:about="https://wiki.winterresortsim.com/modding:luasource-s2:vehicles:vehiclescripts:networkevents:eventrefuelvehicle?rev=1612891327&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2021-02-09T18:22:07+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Vehicles/VehicleScripts/NetworkEvents/EventRefuelVehicle.lua</title>
        <link>https://wiki.winterresortsim.com/modding:luasource-s2:vehicles:vehiclescripts:networkevents:eventrefuelvehicle?rev=1612891327&amp;do=diff</link>
        <description>Vehicles/VehicleScripts/NetworkEvents/EventRefuelVehicle.lua

This file contains an event that triggers refueling the FuelTank of a client's vehicle.


  25  EventRefuelVehicle              = EventRefuelVehicle or ExtensionOf(BaseEvent);
  26  
  27  InitVanillaEvent(EventRefuelVehicle, &quot;EventRefuelVehicle&quot;);
  28  
  29  function EventRefuelVehicle:sendData(entity, isRefuelling)
  30      streamWriteEntityId(entity);
  31      streamWriteBool(isRefuelling);
  32  end;
  33  
  34  function Even…</description>
    </item>
    <item rdf:about="https://wiki.winterresortsim.com/modding:luasource-s2:vehicles:vehiclescripts:networkevents:eventropewinch?rev=1612891327&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2021-02-09T18:22:07+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Vehicles/VehicleScripts/NetworkEvents/EventRopeWinch.lua</title>
        <link>https://wiki.winterresortsim.com/modding:luasource-s2:vehicles:vehiclescripts:networkevents:eventropewinch?rev=1612891327&amp;do=diff</link>
        <description>Vehicles/VehicleScripts/NetworkEvents/EventRopeWinch.lua

This file contains all event that are relevant for the RopeWinch.


  25  
  26  EventSetRopeWinchRotation           = EventSetRopeWinchRotation or ExtensionOf(BaseEvent);
  27  
  28  InitVanillaEvent(EventSetRopeWinchRotation, &quot;EventSetRopeWinchRotation&quot;);
  29  
  30  function EventSetRopeWinchRotation:sendData(entity, rot)
  31      streamWriteEntityId(entity);
  32      streamWriteFloat(rot);
  33  end;
  34  
  35  function EventSet…</description>
    </item>
    <item rdf:about="https://wiki.winterresortsim.com/modding:luasource-s2:vehicles:vehiclescripts:networkevents:eventsetanimatedpart?rev=1612891327&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2021-02-09T18:22:07+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Vehicles/VehicleScripts/NetworkEvents/EventSetAnimatedPart.lua</title>
        <link>https://wiki.winterresortsim.com/modding:luasource-s2:vehicles:vehiclescripts:networkevents:eventsetanimatedpart?rev=1612891327&amp;do=diff</link>
        <description>Vehicles/VehicleScripts/NetworkEvents/EventSetAnimatedPart.lua

This file contains an event that synchronizes the position of AnimatedParts.


  25  
  26  EventSetAnimatedPart                = EventSetAnimatedPart or ExtensionOf(BaseEvent);
  27  
  28  InitVanillaEvent(EventSetAnimatedPart, &quot;EventSetAnimatedPart&quot;);
  29  
  30  function EventSetAnimatedPart:sendData(entity, key, value)
  31      streamWriteEntityId(entity);
  32      streamWriteUInt8(key);
  33      streamWriteBool(value);
  3…</description>
    </item>
    <item rdf:about="https://wiki.winterresortsim.com/modding:luasource-s2:vehicles:vehiclescripts:networkevents:eventsetmovingpartposition?rev=1612891328&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2021-02-09T18:22:08+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Vehicles/VehicleScripts/NetworkEvents/EventSetMovingPartPosition.lua</title>
        <link>https://wiki.winterresortsim.com/modding:luasource-s2:vehicles:vehiclescripts:networkevents:eventsetmovingpartposition?rev=1612891328&amp;do=diff</link>
        <description>Vehicles/VehicleScripts/NetworkEvents/EventSetMovingPartPosition.lua

This file contains an event that synchronizes the position of MovingParts.


  25  
  26  EventSetMovingPartPosition          = EventSetMovingPartPosition or ExtensionOf(BaseEvent);
  27  
  28  InitVanillaEvent(EventSetMovingPartPosition, &quot;EventSetMovingPartPosition&quot;);
  29  
  30  function EventSetMovingPartPosition:sendData(entity, key, pos)
  31      streamWriteEntityId(entity);
  32      streamWriteUInt8(key);
  33      s…</description>
    </item>
    <item rdf:about="https://wiki.winterresortsim.com/modding:luasource-s2:vehicles:vehiclescripts:networkevents:eventsnowgroomer?rev=1612891328&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2021-02-09T18:22:08+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Vehicles/VehicleScripts/NetworkEvents/EventSnowGroomer.lua</title>
        <link>https://wiki.winterresortsim.com/modding:luasource-s2:vehicles:vehiclescripts:networkevents:eventsnowgroomer?rev=1612891328&amp;do=diff</link>
        <description>Vehicles/VehicleScripts/NetworkEvents/EventSnowGroomer.lua

This file contains all event that are relevant for the SnowGroomer.


  25  
  26  EventSetSnowGroomerPosition         = EventSetSnowGroomerPosition or ExtensionOf(BaseEvent);
  27  
  28  InitVanillaEvent(EventSetSnowGroomerPosition, &quot;EventSetSnowGroomerPosition&quot;);
  29  
  30  function EventSetSnowGroomerPosition:sendData(entity, isLowered)
  31      streamWriteEntityId(entity);
  32      streamWriteBool(isLowered);
  33  end;
  34  
…</description>
    </item>
    <item rdf:about="https://wiki.winterresortsim.com/modding:luasource-s2:vehicles:vehiclescripts:networkevents:eventvehiclemotorcruiscontrolenable?rev=1612891328&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2021-02-09T18:22:08+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Vehicles/VehicleScripts/NetworkEvents/EventVehicleMotorCruisControlEnable.lua</title>
        <link>https://wiki.winterresortsim.com/modding:luasource-s2:vehicles:vehiclescripts:networkevents:eventvehiclemotorcruiscontrolenable?rev=1612891328&amp;do=diff</link>
        <description>Vehicles/VehicleScripts/NetworkEvents/EventVehicleMotorCruisControlEnable.lua

This file contains an event that triggers the cruise control implemented in Vehicle.


  25  EventVehicleCruiseControlEnable         = EventVehicleCruiseControlEnable or ExtensionOf(BaseEvent);
  26  
  27  InitVanillaEvent(EventVehicleCruiseControlEnable, &quot;EventVehicleCruiseControlEnable&quot;);
  28  
  29  function EventVehicleCruiseControlEnable:sendData(entity, isEnabled)
  30      streamWriteEntityId(entity);
  31   …</description>
    </item>
    <item rdf:about="https://wiki.winterresortsim.com/modding:luasource-s2:vehicles:vehiclescripts:networkevents:eventvehicleseats?rev=1612891328&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2021-02-09T18:22:08+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Vehicles/VehicleScripts/NetworkEvents/EventVehicleSeats.lua</title>
        <link>https://wiki.winterresortsim.com/modding:luasource-s2:vehicles:vehiclescripts:networkevents:eventvehicleseats?rev=1612891328&amp;do=diff</link>
        <description>Vehicles/VehicleScripts/NetworkEvents/EventVehicleSeats.lua

This file contains all event that are relevant for Seats.


  25  
  26  local function local_streamWriteSeat(entity, seatId)
  27      if streamWriteBool(type(entity) == &quot;string&quot;) then
  28          -- first argument may be a string - in that case it is a key
  29          streamWriteString(entity);
  30      else
  31          streamWriteEntityId(entity);
  32          streamWriteUInt16(seatId);
  33      end;
  34  end;
  35  
  36 …</description>
    </item>
    <item rdf:about="https://wiki.winterresortsim.com/modding:luasource-s2:vehicles:vehiclescripts:networkevents:eventvehiclesetmotoron?rev=1612891328&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2021-02-09T18:22:08+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Vehicles/VehicleScripts/NetworkEvents/EventVehicleSetMotorOn.lua</title>
        <link>https://wiki.winterresortsim.com/modding:luasource-s2:vehicles:vehiclescripts:networkevents:eventvehiclesetmotoron?rev=1612891328&amp;do=diff</link>
        <description>Vehicles/VehicleScripts/NetworkEvents/EventVehicleSetMotorOn.lua

This file contains an event that synchronizes whether the motor of a Vehicle is turned on or off.


  24  EventVehicleSetMotorOn          = EventVehicleSetMotorOn or ExtensionOf(BaseEvent);
  25  
  26  InitVanillaEvent(EventVehicleSetMotorOn, &quot;EventVehicleSetMotorOn&quot;);
  27  
  28  function EventVehicleSetMotorOn:sendData(entity, isOn)
  29      streamWriteEntityId(entity);
  30      streamWriteBool(isOn);
  31  end;
  32  
  33 …</description>
    </item>
    <item rdf:about="https://wiki.winterresortsim.com/modding:luasource-s2:vehicles:vehiclescripts:networkevents:snowcannonevents?rev=1612891328&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2021-02-09T18:22:08+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Vehicles/VehicleScripts/NetworkEvents/SnowCannonEvents.lua</title>
        <link>https://wiki.winterresortsim.com/modding:luasource-s2:vehicles:vehiclescripts:networkevents:snowcannonevents?rev=1612891328&amp;do=diff</link>
        <description>Vehicles/VehicleScripts/NetworkEvents/SnowCannonEvents.lua

This file contains all event that are relevant for the SnowCannon.


  25  
  26  EventSetCannonTurnedOn              = EventSetCannonTurnedOn or ExtensionOf(BaseEvent);
  27  
  28  InitVanillaEvent(EventSetCannonTurnedOn, &quot;EventSetCannonTurnedOn&quot;);
  29  
  30  function EventSetCannonTurnedOn:sendData(entity, cannonIndex, isOn)
  31      streamWriteEntityId(entity);
  32  
  33      streamBeginWriteBitwise();
  34      streamWriteUInt…</description>
    </item>
    <item rdf:about="https://wiki.winterresortsim.com/modding:luasource-s2:vehicles:vehiclescripts:networkevents:snowsystemevents?rev=1612891328&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2021-02-09T18:22:08+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Vehicles/VehicleScripts/NetworkEvents/SnowSystemEvents.lua</title>
        <link>https://wiki.winterresortsim.com/modding:luasource-s2:vehicles:vehiclescripts:networkevents:snowsystemevents?rev=1612891328&amp;do=diff</link>
        <description>Vehicles/VehicleScripts/NetworkEvents/SnowSystemEvents.lua

This file contains all event that are relevant for the snow system, in particular those parts used in SnowBlade, SnowCannon, SnowDisplacement and SnowGroomer.

Note that all of these events are server-&gt;client only, i.e. only the server is authorized to trigger changes in the snow system for each client.</description>
    </item>
    <item rdf:about="https://wiki.winterresortsim.com/modding:luasource-s2:vehicles:vehiclescripts:networkevents:start?rev=1612891328&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2021-02-09T18:22:08+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Vehicles/VehicleScripts/NetworkEvents/</title>
        <link>https://wiki.winterresortsim.com/modding:luasource-s2:vehicles:vehiclescripts:networkevents:start?rev=1612891328&amp;do=diff</link>
        <description>Vehicles/VehicleScripts/NetworkEvents/

Following files are contained in this directory:

	*  Vehicles/VehicleScripts/NetworkEvents/EventAttacherSystem.lua
	*  Vehicles/VehicleScripts/NetworkEvents/EventEnterVehicle.lua
	*  Vehicles/VehicleScripts/NetworkEvents/EventPlaySingleSound.lua
	*  Vehicles/VehicleScripts/NetworkEvents/EventRefuelVehicle.lua
	*  Vehicles/VehicleScripts/NetworkEvents/EventRopeWinch.lua
	*  Vehicles/VehicleScripts/NetworkEvents/EventSetAnimatedPart.lua
	*  Vehicles/Vehicle…</description>
    </item>
    <item rdf:about="https://wiki.winterresortsim.com/modding:luasource-s2:vehicles:vehiclescripts:networkevents:vehiclelightingevents?rev=1612891328&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2021-02-09T18:22:08+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Vehicles/VehicleScripts/NetworkEvents/VehicleLightingEvents.lua</title>
        <link>https://wiki.winterresortsim.com/modding:luasource-s2:vehicles:vehiclescripts:networkevents:vehiclelightingevents?rev=1612891328&amp;do=diff</link>
        <description>Vehicles/VehicleScripts/NetworkEvents/VehicleLightingEvents.lua

This file contains all event that are relevant for VehicleLighting.


  25  
  26  EventSetLightState                  = EventSetLightState or ExtensionOf(BaseEvent);
  27  
  28  InitVanillaEvent(EventSetLightState, &quot;EventSetLightState&quot;);
  29  
  30  function EventSetLightState:sendData(entity, headlight, turnLight, beaconLight)
  31      streamWriteEntityId(entity);
  32  
  33      streamBeginWriteBitwise();
  34      streamWri…</description>
    </item>
</rdf:RDF>
