SetPSLimit

From NPC for VCMP 0.4 Servers
Revision as of 07:36, 22 December 2022 by Habi (talk | contribs)
Jump to navigation Jump to search


Description:
Sets PS (Passenger Sync) Limit of automatically syncing while inside as passenger.


Parameters:

(n)

n: The number of player update packets( PLAYERUPDATE_DRIVER ) to wait before sending an automatic passenger sync packet. If high accuracy needed, use -1 to disable automatic syncing and use SendPassengerSyncData. The default value is 2.


Return Values:
This function does not return any specific values.

Important Note:
This was added in v1.5 patch 1.

Example

SetPSLimit(1);//Sending one sync packet per incoming update packet of driver

Related Functions

The following functions may be helpful as they relate to this function in one way or another.