1
0
EQ2Emu/docs/lua_functions/CopySpawnAppearance.md
2025-05-28 21:48:33 -04:00

17 lines
552 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

### Function: CopySpawnAppearance(SourceSpawn, TargetSpawn)
**Description:** Copies the appearance (race, gender, outfit, etc.) from one spawn to another. This effectively makes the target look identical to the source. Often used for illusion or clone effects.
**Parameters:**
`SourceSpawn`: Spawn The entity whose appearance to copy.
`TargetSpawn`: Spawn The entity that will receive the appearance.
**Returns:** None.
**Example:**
```lua
-- Example usage (make a decoy NPC look like the player)
CopySpawnAppearance(Player, DecoyNPC)
```