eq2emu/docs/lua_functions/RemovePrimaryEntityCommand.md

17 lines
525 B
Markdown
Raw Permalink Normal View History

### Function: RemovePrimaryEntityCommand(Spawn, CommandString)
2025-05-19 13:13:42 -04:00
**Description:**
Removes a previously added primary entity command from the specified spawn entirely. Players will no longer see that option when interacting with the spawn.
2025-05-19 13:13:42 -04:00
**Parameters:**
- `Spawn`: Spawn The entity from which to remove the command.
- `CommandString`: String The name of the command to remove.
2025-05-19 13:13:42 -04:00
**Returns:** None.
2025-05-19 13:13:42 -04:00
**Example:**
2025-05-19 13:13:42 -04:00
```lua
2025-05-19 13:13:42 -04:00
-- Example usage (Remove hail from command list)
RemovePrimaryEntityCommand(QuestNPC, "hail")
```