AddPrimaryEntityCommandAllSpawns(Spawn: Player, Int32: SpawnID, String: Name, Float: Distance, String: Command, String: ErrorText, Int16: CastTime, Int32: SpellVisual)
Pre-Requisite(s)
- None
Parameter(s)
Spawn: Player (OPTIONAL) - Spawn LUA Pointer of Player type only, if nil is sent then entity command is applied for all Players.
Int32: SpawnID - NPC Database ID of the NPC Spawns to be changed
String: Name - Display name in the right click context menu for the entity command.
Float: Distance - Distance at which Spawns will be applied the entity command update.
String: Command - Command (function) in the LUA script to handle selecting the entity command.
String: ErrorText (OPTIONAL) - Displays error text with command name.
Int16: CastTime (OPTIONAL) - Time to cast entity command.
Int32: SpellVisual (OPTIONAL) - SpellVisual to display when casting
Return(s)
- None
Example(s)
TBD
Result
Additional Notes