[DiscordArchive] hey, anyone have idea how can I identify if cre...
[DiscordArchive] hey, anyone have idea how can I identify if cre...
Archived author: Needle • Posted: 2025-05-10T12:01:52.051000+00:00
Original source
Archived author: Needle • Posted: 2025-05-10T12:01:52.946000+00:00
Original source
Thread automatically created by Shako in <#415944535718494208>
Archived author: stoneharry • Posted: 2025-05-10T12:39:13.698000+00:00
Original source
```c++
bool WorldObject::IsHostileTo(WorldObject const* target) const
{
return GetReactionTo(target) <= REP_HOSTILE;
}
bool WorldObject::IsFriendlyTo(WorldObject const* target) const
{
return GetReactionTo(target) >= REP_FRIENDLY;
}
```
Archived author: stoneharry • Posted: 2025-05-10T12:39:44.089000+00:00
Original source
not exposed in Eluna by default, but you can add a new Lua method *very* easily, just invoking the above WorldObject methods