direction

Vars | |
last_faction_id | Used as a incrememnted var to create new faction IDs |
---|---|
leader_mapping | this is a map of defines to mob references, eg; list(FACTION_ID = |
mobs_in_processing | Lookup for list( |
processing_mobs | this is a two d list of defines to lists of mobs tracking that leader eg; list(CHARLIE_SL = list(<list of references to squad marines), XENO_NORMAL_QUEEN = list(<list of xeno mob refs)) |
Procs | |
clear_leader | Clears the leader for this squad id |
init_squad | Creates a new squad so tat we can start tracking it's leader Arguments: |
set_leader | Sets a new leader for a squad |
start_tracking | Adds a new mob to a squad so it can track Arguments: |
stop_tracking | Removes a new mob drom a squad so it can stop tracking Arguments: |
untrack_all_in_squad | Stops all members of this squad from tracking the leader |
Var Details
last_faction_id

Used as a incrememnted var to create new faction IDs
leader_mapping

this is a map of defines to mob references, eg; list(FACTION_ID =
mobs_in_processing

Lookup for list(
processing_mobs

this is a two d list of defines to lists of mobs tracking that leader eg; list(CHARLIE_SL = list(<list of references to squad marines), XENO_NORMAL_QUEEN = list(<list of xeno mob refs))
Proc Details
clear_leader
Clears the leader for this squad id
init_squad
Creates a new squad so tat we can start tracking it's leader Arguments:
- new_squad_id: string ID for the new squad we are creating, if none is given creates a new id with last faction id
- squad_leader_mob: optional; mob that we want to be SL of this squad
set_leader
Sets a new leader for a squad
start_tracking
Adds a new mob to a squad so it can track Arguments:
- squad_id: string squad ID we want to be tracking
- new_tracker: New mob we are adding that wants to track the leader of this squad
stop_tracking
Removes a new mob drom a squad so it can stop tracking Arguments:
- squad_id: string squad ID we want to be tracking
- tracker: Mob we are removing from tracking
untrack_all_in_squad
Stops all members of this squad from tracking the leader