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

16 lines
475 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: GetInfoStructFloat(Spawn, FieldName)
Description: Retrieves a floating-point field from a spawns info data. Could be used for precise position, speed multipliers, etc. if stored there.
Parameters:
Spawn: Spawn The entity whose info to check.
FieldName: String The name of the float field.
Returns: Float The value of the field.
Example:
-- Example usage (get an entity's size scale factor)
local scale = GetInfoStructFloat(NPC, "size")