No categories assigned
LUA:SetMountColor
- Last edited 12 years ago by I need to Update My Profile
LUA Functions: SetMountColor()
Sets the mount and saddle color for the given spawn
Syntax
SetMountColor(param1, [param2], [param3], [param4, [param5], [param6], [param7])
Parameters
- Required - param1 (Spawn)
- param1 is the spawn who's mount we want to change
- Optional - param2 (int8), param3 (int8), param4 (int8), param5 (int8), param6 (int8), param7 (int8)
- param2 is the red value to give the mount
- param3 is the green value to give the mount
- param4 is the blue value to give the mount
- param5 is the red value to give the saddle
- param6 is the green value to give the saddle
- param7 is the blue value to give the saddle
Usage
function hailed(NPC, Spawn)
SetMountColor(Spawn, 255, 255, 255)
end
When hailed the players mount will change to white with a black saddle
Notes
All optional values will default to 0