eq2emu/docs/lua_functions/SetMountColor.md

29 lines
761 B
Markdown
Raw Permalink Normal View History

### Function: SetMountColor(spawn, red, green, blue, red, green, blue)
2025-05-04 14:34:15 -04:00
**Description:**
Sets the mount's colors for the Spawn specified.
2025-05-04 14:34:15 -04:00
**Parameters:**
- `spawn` (Spawn) - Spawn object representing `spawn`.
- `red` (int32) - Integer value `red`.
- `green` (int32) - Integer value `green`.
- `blue` (int32) - Integer value `blue`.
- `red` (int32) - Integer value `red`.
- `green` (int32) - Integer value `green`.
- `blue` (int32) - Integer value `blue`.
2025-05-04 14:34:15 -04:00
**Returns:** None.
**Example:**
```lua
-- From SpawnScripts/BeggarsCourt/AdjunctCaptainRommuls.lua
function spawn(NPC)
SetMount(NPC, 6831)
SetMountColor(NPC, 1, 1, 1, 255, 1, 1)
MoveToLocation(NPC, -8.13, 4.00, -42.68, 3, "", true)
MoveToLocation(NPC, -14.43, 3.57, -27.02, 3, "", false)
end
2025-05-04 14:34:15 -04:00
```