2025-05-23 11:50:05 -04:00
### Function: RemovePrimaryEntityCommand(Spawn, CommandString)
2025-05-19 13:13:42 -04:00
2025-05-23 11:50:05 -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
2025-05-23 11:50:05 -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
2025-05-23 11:50:05 -04:00
**Returns:** None.
2025-05-19 13:13:42 -04:00
2025-05-23 11:50:05 -04:00
**Example:**
2025-05-19 13:13:42 -04:00
2025-05-23 11:50:05 -04:00
```lua
2025-05-19 13:13:42 -04:00
-- Example usage (Remove hail from command list)
2025-05-23 11:50:05 -04:00
RemovePrimaryEntityCommand(QuestNPC, "hail")
```