SetConfig: Difference between revisions

From NPC for VCMP 0.4 Servers
Jump to navigation Jump to search
No edit summary
No edit summary
Line 14: Line 14:
{{!}}}
{{!}}}
The default value is 3. Combined features: Sends an onfoot-packet to the server when a player streams in, and preserves the weapon when the server sets a skin for the NPC.|
The default value is 3. Combined features: Sends an onfoot-packet to the server when a player streams in, and preserves the weapon when the server sets a skin for the NPC.|
retvals=true always
}}
}}

Revision as of 15:48, 5 February 2024

This function was added in v1.8 beta and will not work on previous versions.


Description:
Changes automatic behaviour of npc on events like player stream in or skin is changed by server


Parameters:

(value)

value - An integer from following table which can be combined using bitwise OR

SetConfig Function Features
Configuration Value Feature Description
1 Sends an onfoot-packet to server Whenever a player streams in. When an NPC is inside a vehicle, nothing happens.
2 Sends an onfoot-packet to preserve weapon When the server sets a skin for the NPC on various occasions, the NPC sends an onfoot-packet so that its weapon is not lost (as seen by other players).

The default value is 3. Combined features: Sends an onfoot-packet to the server when a player streams in, and preserves the weapon when the server sets a skin for the NPC.


Return Values:
true always