No categories assigned
LUA:Attack
- Last edited 4 years ago by Vlash Nytefall
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