No categories assigned
LUA:SetServerControlFlag
- Last edited 12 years ago by I need to Update My Profile
LUA Functions: SetServerControlFlag()
Sets the server control flag for the given player
Syntax
SetServerControlFlag(param1, param2, param3, param4)
Parameters
- Required - param1 (Spawn), param2 (int8), param3 (int8), param4 (int8)
- param1 is the player to set the server control flag for
- param2 is the param to set
- param3 is the value of the param
- param4 is the value
Usage
function hailed(NPC, Spawn)
SetServerControlFlag(Spawn, 5, 32, 1)
end
When hailed fly mode will be set for the player
Notes
param4 is a toggle, 1 for on 0 for off
Somme other values for this packet
first param (param2 = 1)
01 flymode
02 collisons off
04 unknown
08 forward movement
16 heading movement
32 low gravity
64 sit
second: (param2 = 2)
2 crouch
third: (param2 = 3)
04 float when trying to jump, no movement
08 jump high, no movement
fourth: (param2 = 4)
04 autorun (fear?)
16 moon jumps
32 safe fall (float to ground)
64 cant move
fifth: (param2 = 5)
01 die - feign death
08 hover (fae)
32 flymode2?