src/scene/shared/actor_facing.c
Altin Peak, Bilibin, Imil, Kolima, McCoy's palace and garden, Sol Sanctum's Elemental Star room, and Vale's Kraden, Babi, home and rooms scenes: people who turn to keep someone in view.
Included by altin_peak.c, bilibin.c, cottage_rooms_a.c, cottage_rooms_b.c, imil.c, kolima.c, mccoy_palace.c, mccoy_palace_grounds.c, sol_sanctum_elemental_star_room.c, vale_kradens_cottage.c and vale_plaza.c.
Functions
| Name | Description | |
|---|---|---|
static Sint32 | scTurnTowardTarget (ACTOR *actor) | An actor script call: an actor with a facing target turns towards it, at most a sixteenth of a turn a tick. |
Description
Altin Peak, Bilibin, Imil, Kolima, McCoy's palace and garden, Sol Sanctum's Elemental Star room, and Vale's Kraden, Babi, home and rooms scenes: people who turn to keep someone in view.
Functions in detail
scTurnTowardTarget
static Sint32 scTurnTowardTarget(ACTOR *actor)
An actor script call: an actor with a facing target turns towards it, at most a sixteenth of a turn a tick.
References Sint32 and syAtan().
Referenced by AltinPeakFaceLeaderScript, BilibinFaceLeaderScript, CottageRoomsAFaceTargetScript, CottageRoomsBDoraFacesIsaacScript, ImilFaceTargetScript, KolimaFaceLeaderScript, McCoyPalaceGroundsGuardWatchesParty, McCoyPalaceTurnTowardWatched, SolSanctumElementalStarRoomAngleScript, ValeKradensCottageFaceTargetActions and ValePlazaFaceTargetActions.
Definition at line 9 of file actor_facing.c.