Skip to Content
The Alchemy Project

src/scene/shared/actor_aim_at_watched.c

Included by airs_rock_inside.c, aqua_rock_inside.c, gaia_rock_inside.c and magma_rock_inside.c.

Macros

NameDescription
#defineAIM_STEPS 10The steps an aimed actor takes to reach the actor it watches.

Functions

NameDescription
Sint32scActorAimAtWatched (ACTOR *actor)Aims an actor at the actor it watches, 16 pixels above its feet, to reach it in AIM_STEPS steps of scActorStepToWatched.

Macros in detail

AIM_STEPS

#define AIM_STEPS 10

The steps an aimed actor takes to reach the actor it watches.

Referenced by scActorAimAtWatched().

Definition at line 2 of file actor_aim_at_watched.c.

Functions in detail

scActorAimAtWatched

Sint32 scActorAimAtWatched(ACTOR *actor)

Aims an actor at the actor it watches, 16 pixels above its feet, to reach it in AIM_STEPS steps of scActorStepToWatched.

References Sint32.

Referenced by LessonSeekingSparkScript and MagmaRockInsideOrbitScript.

Definition at line 6 of file actor_aim_at_watched.c.