Acquire (Procedure)
Behavior
Description:
The actor will move to a specified item, then pick that item up and add it to their inventory.
The procedure completes:
When the actor adds enough of the target item(s) to his inventory
Parameters
- Target (Target): What to acquire (usually an ObjectList filled by a Find procedure)
- NumToAcquire (Int): How many to acquire
- AllowStealing (Bool): Is the actor allowed to consider acquiring target if it is owned by someone else?
- AllowPickpocket (Bool): Is the actor allowed to consider acquiring target if it is in another actor's inventory via pickpocketing?
- AllowKilling (Bool): Is the actor allowed to consider acquiring target if it is in another actor's inventory via killing him to get it?
Notes
- What happens if the item disappears (like if the player picks it up)?
- If they're picking from an ObjectList, they'll try to acquire the next valid object in the list. If that doesn't work, they stop trying to Acquire an item, and the procedure fails.
- How close does an actor have to be to pick up an item?
- Currently it has to be “at” the reference it’s picking up; this uses the gamesetting iAIDistanceRadiusMinLocation which is the default radius for turning a target into a location.
See Also
- ??? None.