feat(CreatureMethods.h): Added SetReactState(x)
Signed-off-by: Tikki <oliver.m.m@hotmail.com>
This commit is contained in:
@@ -983,6 +983,18 @@ auto const& threatlist = creature->getThreatManager().getThreatList();
|
||||
return 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the [Creature]'s ReactState to `state`.
|
||||
*
|
||||
* @param [ReactState] state
|
||||
*/
|
||||
int SetReactState(lua_State* L, Creature* creature)
|
||||
{
|
||||
uint32 state = Eluna::CHECKVAL<uint32>(L, 2);
|
||||
|
||||
creature->SetReactState((ReactStates)state);
|
||||
return 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* Makes the [Creature] able to fly if enabled.
|
||||
|
||||
@@ -807,6 +807,7 @@ ElunaRegister<Creature> CreatureMethods[] =
|
||||
{ "SetLootMode", &LuaCreature::SetLootMode },
|
||||
#endif
|
||||
{ "SetNPCFlags", &LuaCreature::SetNPCFlags },
|
||||
{ "SetReactState", &LuaCreature::SetReactState },
|
||||
{ "SetDeathState", &LuaCreature::SetDeathState },
|
||||
{ "SetWalk", &LuaCreature::SetWalk },
|
||||
{ "SetHomePosition", &LuaCreature::SetHomePosition },
|
||||
|
||||
Reference in New Issue
Block a user