/tg/ Station 13 - Modules - TypesVar Details - Proc Details

ai_movement

This datum is an abstract class that can be overriden for different types of movement

Vars

max_pathing_attemptsHow many times a given controller can fail on their route before they just give up
moving_controllersAssoc list ist of controllers that are currently moving as key, and what they are moving to as value

Procs

allowed_to_moveShould the movement be allowed to happen? As of writing this, MOVELOOP_SKIP_STEP is defined as (1<<0) so be careful on using (return TRUE) or (can_move = TRUE; return can_move)
pre_moveAnything to do before moving; any checks if the pawn should be able to move should be placed in allowed_to_move() and called by this proc

Var Details

max_pathing_attempts

How many times a given controller can fail on their route before they just give up

moving_controllers

Assoc list ist of controllers that are currently moving as key, and what they are moving to as value

Proc Details

allowed_to_move

Should the movement be allowed to happen? As of writing this, MOVELOOP_SKIP_STEP is defined as (1<<0) so be careful on using (return TRUE) or (can_move = TRUE; return can_move)

pre_move

Anything to do before moving; any checks if the pawn should be able to move should be placed in allowed_to_move() and called by this proc