Games > The Simpsons Hit & Run > Objective Types > Known Types > delivery

delivery

Syntax

AddObjective("delivery");
	AddCollectible( collectible_locator, composite_drawable_name );
	SetCollectibleEffect( collectible_effect );
CloseObjective();

Game.AddObjective("delivery")
	Game.AddCollectible( collectible_locator, composite_drawable_name )
	Game.SetCollectibleEffect( collectible_effect )
Game.CloseObjective()

  • collectible_locator: The name of the Type 0 locator to place the collectible at.
  • composite_drawable_name The name of the comppsite drawable to use for the collectible.
    • The p3d file containing this composite drawable must be loaded when starting the mission containing this objective type. Otherwise, the game will crash when reaching the stage containing this objective.
  • collectible_effect: The name of the effect to use when collecting the collectible item.
    • Optional; defaults to mission_col if SetCollectibleEffect() is omitted.

Examples

AddObjective("delivery");
	AddCollectible("m1_tomato", "scien");
CloseObjective();

Game.AddObjective("delivery")
	Game.AddCollectible("m1_tomato", "scien")
Game.CloseObjective()

Notes

  • Up to 30 collectibles can be added inside this objective type. However, if more than 30 collectibles are added, the game will crash when reaching the stage containing this objective.
  • SetCollectibleEffect can be used either once (in which case, the effect will be used for all collectibles preceeding SetCollectibleEffect) or for each collectible (in which case, the effect will be used for the single collectible preceeding SetCollectibleEffect).
Donut Team © 2024 · v4.0