mirror of
https://github.com/Michatec/wk_wars2x.git
synced 2026-04-01 00:16:27 +02:00
feat(sync): locked speed overrides recipient's speed data
When the driver/passenger locks a speed, the data from the player who locked the speed is gathered and sent to the other player. This way the players will have the same data on both ends.
This commit is contained in:
@@ -103,7 +103,5 @@ end )
|
||||
|
||||
RegisterNetEvent( "wk_wars2x_sync:receiveLockAntennaSpeed" )
|
||||
AddEventHandler( "wk_wars2x_sync:receiveLockAntennaSpeed", function( antenna, data )
|
||||
RADAR:SetAntennaSpeed( antenna, data[1] )
|
||||
RADAR:SetAntennaDir( antenna, data[2] )
|
||||
RADAR:LockAntennaSpeed( antenna )
|
||||
RADAR:LockAntennaSpeed( antenna, data )
|
||||
end )
|
||||
Reference in New Issue
Block a user