No categories assigned

LUA:Attack

Revision as of 12:07, 30 January 2021 by Cynnar (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


LUA:AllFunctions - Attack

Return to: LUA:AllFunctions | Tutorials | Portal | Forum | Project Manager | Bug Tracker


Forces a NPC to attack a player.

Syntax

Attack(param1, param2)

Parameters

Required - param1 (Spawn), param2 (Spawn)
param1 is the spawn that will attack the target, must be an NPC
param2 is the target, must be a player


Example

function hailed(NPC, Spawn)
    Attack(NPC, Spawn)
end

The NPC will attack the player that hails it.

Notes

None