Donut Team is a labor of love, built and maintained by a small group of passionate developers. We invest our own time and resources to offer our tools, mods, and web services completely free of charge.

We don't run ads, and we will never sell your data - period.

If you've enjoyed anything we've created, please consider supporting our work with a one-time or monthly donation via our Ko-fi page . Every contribution helps us continue building great experiences for the community.

Dismiss
  • Modding Tools
  • Lucas' Simpsons Hit & Run Mod Launcher
  • Hacks
  • Mod Requirable Hacks
  • Additional Script Functionality
  • Console Commands
  • MFK Commands
  • Mission Initialisation
  • Stages
  • Objectives

SetObjCanSkip

Available since Version 1.18.

Set whether or not a camera can be skipped.

Scope

This command should be called between calls to AddObjective and CloseObjective in a mission's initialisation script.

Syntax

MFK
Lua
SetObjCanSkip( can_skip );
Game.SetObjCanSkip( can_skip )
  • can_skip : Whether or not the player can skip the objective.
    • Defaults to 0 / false.

Examples

MFK
Lua
AddObjective("camera");
	SetObjCameraName("mission0camShape");
	SetObjMulticontName("mission0cam");

	// Let the player skip the camera animation.
	SetObjCanSkip(1);
CloseObjective();
Game.AddObjective("camera")
	Game.SetObjCameraName("mission0camShape")
	Game.SetObjMulticontName("mission0cam")

	-- Let the player skip the camera animation.
	Game.SetObjCanSkip(1)
Game.CloseObjective()

Notes

No additional notes.

Version History

1.18.1

Made ASF commands that take a boolean as an argument accept true or false as well as 0 or 1 instead of accepting any integer and treating it as true if it's not 0.