SetConfig: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
(3 intermediate revisions by the same user not shown) | |||
Line 12: | Line 12: | ||
{{!}}- | {{!}}- | ||
{{!}} 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). | {{!}} 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.| | |||
retvals=This function always returns true. | |||
}} | }} |
Latest revision as of 15:49, 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
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:
This function always returns true.