mirror of
https://github.com/emagi/eq2emu
synced 2026-08-12 18:23:04 -04:00
606 B
606 B
Function: SetInfoStructFloat(spawn, field, value)
Description: Sets the float 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(float) - Float valuevalue.
Returns: None.
Example:
-- From SpawnScripts/Generic/CombatModule.lua
function attributes(NPC, Spawn)
-- Calculate attributes
if level <= 4 then
baseStat = 19 else
baseStat = level + 15
end