1
0
EQ2Emu/docs/lua_functions/GetInfoStructUInt.md
2025-05-13 22:57:49 -04:00

18 lines
566 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: GetInfoStructUInt(Spawn, FieldName)
Description: Retrieves an unsigned integer field from a spawns info struct. This can include things like level, model type, gender, etc.
Parameters:
Spawn: Spawn The entity in question.
FieldName: String The name of the UInt field to get (e.g., "age", "race_id").
Returns: Int32 The value of the field.
Example:
-- Example usage (check an NPC's model type for conditional behavior)
if GetInfoStructUInt(NPC, "model_type") == 3 then
-- model_type 3 (maybe indicating a mounted model)
end