src/scene/shared/actor_is_facing_near.c
Included by contigo.c and lemuria.c.
Functions
| Name | Description | |
|---|---|---|
Sint32 | scActorIsFacingNear (ACTOR *self, ACTOR *other, Sint32 range) | 1 when other is nearer self than range pixels and lies in the sixteenth of a turn self faces or in one either side of it. |
Functions in detail
scActorIsFacingNear
Sint32 scActorIsFacingNear(ACTOR *self, ACTOR *other, Sint32 range)
1 when other is nearer self than range pixels and lies in the sixteenth
of a turn self faces or in one either side of it.
References result, scPosDistance(), Sint32 and syAtan().
Referenced by scContigoPauseWhenFaced() and scLemuriaNoticeLeader().
Definition at line 3 of file actor_is_facing_near.c.