mirror of
https://github.com/emagi/eq2emu
synced 2026-08-12 18:23:04 -04:00
412 B
412 B
Function: GetTarget(spawn)
Description: Gets the current target of the Spawn.
Parameters:
spawn(Spawn) - Spawn object representingspawn.
Returns: Spawn object reference.
Example:
-- From ItemScripts/AutomaticBook.lua
function obtained(Item, Spawn)
target = GetTarget(Spawn)
if target ~= nil then
-- CastEntityCommand(Spawn, target, 1, "Scribe")
end