Vault, before and after the thieves are caught: villagers who walk about stop when someone is close in front of them. More...
Go to the source code of this file.
Functions | |
| s32 | Vault_StopIfFacingNear (struct FieldActor *actor, struct FieldActor *target, s32 range, s32 force) |
| Stops the actor (paused, mode 1) when the target is nearer than range pixels and lies ahead of it, within a sixteenth of a turn either side of its heading; force stops it regardless. | |
Vault, before and after the thieves are caught: villagers who walk about stop when someone is close in front of them.
Definition in file vault_range.h.
| s32 Vault_StopIfFacingNear | ( | struct FieldActor * | actor, |
| struct FieldActor * | target, | ||
| s32 | range, | ||
| s32 | force ) |
Stops the actor (paused, mode 1) when the target is nearer than range pixels and lies ahead of it, within a sixteenth of a turn either side of its heading; force stops it regardless.
Returns 1 when it stopped. A target out of range sets it walking again (mode 2).
Definition at line 11 of file vault_range.h.
Referenced by Vault_StopIfFacingNear(), Vault_UpdateRoofComplainerProximity(), and Vault_UpdateWalkingVillager().