You are viewing an old version of this page. Return to the latest version.
Version of 21:50, 28 August 2013 by I need to Update My Profile
No categories assigned
LUA:AddToWard
- Last edited 4 years ago by Vlash Nytefall
LUA Functions: HasGroup()
Checks to see if the given spawn has a group
Syntax
HasGroup(param1)
Parameters
- Required - param1 (Spawn)
- param1 is the spawn we want to check
Usage
function hailed(NPC, Spawn)
if HasGroup(NPC) then
Say(NPC, "I have friends!")
else
Say(NPC, "I am a loner!")
end
end
This will cause the spawn to say if they are in a group or not when hailed
Notes
This will work on both NPC's and player's