590 B
590 B
Function: SetInfoStructString(spawn, field, value)
Description: Sets the string field to the value provided. See https://github.com/emagi/eq2emu/blob/main/docs/data_types/info_struct.md for field types.
Parameters:
spawn
(Spawn) - Spawn object representingspawn
.field
(string) - Stringfield
.value
(string) - Stringvalue
.
Returns: None.
Example:
-- From SpawnScripts/Antonica/anoverlandminer.lua
function spawn(NPC, Spawn)
NPCModule(NPC, Spawn)
dwarf(NPC)
SetInfoStructString(NPC, "action_state", "mining_digging")
end