You are viewing an old version of this page. Return to the latest version.
Version of 20:59, 15 October 2012 by I need to Update My Profile
No categories assigned
LUA:Attack
- Last edited 4 years ago by Vlash Nytefall
LUA Functions: Attack()
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
Usage
function hailed(NPC, Spawn)
Attack(NPC, Spawn)
end
The NPC will attack the player that hails it.