Difference between revisions of "CollectLootAI"

From Elite Wiki
 
m
Line 19: Line 19:
 
GLOBAL = {ENTER = ("setStateTo: LOOT"); EXIT = (); UPDATE = (); };
 
GLOBAL = {ENTER = ("setStateTo: LOOT"); EXIT = (); UPDATE = (); };
 
}
 
}
  +
  +
'''[[AI|BACK]]'''

Revision as of 21:51, 23 January 2006

A specialised jobAI. Just two states.

Upon starting, it will imdeately redirect to the second state LOOT Which will locate the loot and collect it. All other messages will result in exitAI.

{
    LOOT = {
        ATTACKED = (exitAI); 
        "COLLISION" = (exitAI); 
        "CARGO_SCOOPED" = (exitAI); 
        ENTER = (performCollect); 
        EXIT = (); 
        "HOLD_FULL" = (exitAI); 
        "INCOMING_MISSILE" = (fightOrFleeMissile, exitAI); 
        "TARGET_LOST" = (exitAI); 
        UPDATE = (); 
    }; 
    GLOBAL = {ENTER = ("setStateTo: LOOT"); EXIT = (); UPDATE = (); }; 
}

BACK