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

18 lines
577 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: CompareSpawns(SpawnA, SpawnB)
Description: Compares two spawn objects to determine if they refer to the same actual entity in the world.
Parameters:
SpawnA: Spawn The first spawn to compare.
SpawnB: Spawn The second spawn to compare.
Returns: Boolean true if both SpawnA and SpawnB represent the same spawn (same entity); false if they are different.
Example:
-- Example usage (make sure a target hasnt changed before proceeding)
if CompareSpawns(CurrentTarget, GetTarget(Player)) then
-- proceed assuming target remains the same
end