Modding Tools > Lucas' Simpsons Hit & Run Mod Launcher > Hacks > Mod Requirable Hacks > Additional Script Functionality > MFK Commands > All Commands

All Commands

This page lists all of the MFK file script commands added by this hack.

Level Commands

AddParkedCar

Added in Version 1.22.

Adds a car to the parked cars list for the level. This can be used to add a parked car without also adding it to a traffic group.

Learn more...

SetCarChangeHitAndRunChange

Added in Version 1.18.

Set the amount the Hit & Run meter will change when swapping to a different vehicle.

Learn more...

SetHitAndRunDecayHitAndRun

Added in Version 1.18.

Set the amount the Hit & Run meter will decay each second while the player is in a Hit & Run.

Learn more...

SetHitAndRunFine

Added in Version 1.18.

Set the amount of coins the player will be fined if they are caught in a Hit & Run.

Learn more...

Mission Commands

SetHUDMapDrawable

Added in Version 1.18.

Set the current drawable for the HUD map when a mission starts.

Learn more...

SetParkedCarsEnabled

Added in Version 1.20.

Set whether or not parked cars are enabled for the mission.

Learn more...

SetPedsEnabled

Added in Version 1.20.

Sets whether or not pedestrians are enabled for a mission.

Learn more...

UseTrafficGroup

Added in Version 1.22.

Set what traffic group will be used when the mission is selected or restarted.

Learn more...

Stage Commands

DisableTrigger

Added in Version 1.18.

Disable a locator's trigger(s) for a stage. Repeat for each locator's triggers you'd like to disable.

Learn more...

SetStageAllowMissionCancel

Added in Version 1.18.1.

Set whether or not the player is allowed to restart or cancel the mission during the stage.

Learn more...

SetStageCarChangeHitAndRunChange

Added in Version 1.18.

Set the amount the Hit & Run meter will change when swapping to a different vehicle for the stage.

Learn more...

SetStageCharacterModel

Added in Version 1.18.

Set the player character's model for the stage.

Learn more...

SetStagePayout

Added in Version 1.18.

Set an amount of coins to give the player when they complete the stage.

Learn more...

Checkpoints

CHECKPOINT_HERE

Added in Version 1.25.

Adds a checkpoint to a stage.

Learn more...

IfCurrentCheckpoint

Added in Version 1.25.

Returns whether or not the current stage is being resumed from a checkpoint.

Learn more...

SetCheckpointResetPlayerInCar

Added in Version 1.25.

Makes the player reset in their car when resuming a stage from a checkpoint.

Learn more...

SetCheckpointResetPlayerOutCar

Added in Version 1.25.

Makes the player reset on foot when resuming a stage from a checkpoint.

Learn more...

SetCheckpointDynaLoadData

Added in Version 1.25.

Sets the dyna load data string to use when resuming a stage from a checkpoint.

Learn more...

SetCheckpointPedGroup

Added in Version 1.25.

Sets the current ped group when resuming a stage from a checkpoint.

Learn more...

SetCheckpointTrafficGroup

Added in Version 1.25.

Sets the current traffic group when resuming a stage from a checkpoint.

Learn more...

Hit & Runs

ResetStageHitAndRun

Added in Version 1.18.

Resets the Hit & Run meter when reaching a stage, erasing all existing chase cars.

Learn more...

SetNoHitAndRunMusicForStage

Added in Version 1.18.

Disables the game switching to the Hit & Run music during a Hit & Run for the stage. Instead, the mission's music will continue.

Learn more...

SetStageHitAndRun

Added in Version 1.18.

Set the value of the Hit & Run meter when starting the stage.

Learn more...

SetStageHitAndRunDecay

Added in Version 1.18.

Set the Hit & Run meter decay rate for a stage.

Learn more...

SetStageHitAndRunDecayHitAndRun

Added in Version 1.18.

Set the Hit & Run meter decay rate while in a Hit & Run for a stage.

Learn more...

SetStageHitAndRunDecayInterior

Added in Version 1.18.

Set the Hit & Run decay rate while in an interior for a stage.

Learn more...

SetStageHitAndRunFine

Added in Version 1.18.

Set the Hit & Run fine for a stage.

Learn more...

SetStageNumChaseCars

Added in Version 1.18.

Set the amount of chase cars that will spawn during a Hit & Run this stage.

Learn more...

Vehicles

ResetStageVehicleAbductable

Added in Version 1.25.

Resets the abductable status of a vehicle set with SetStageVehicleAbductable back to the default for the given vehicle.

Learn more...

SetStageVehicleAbductable

Added in Version 1.25.

Sets the abductable status of a vehicle.

Learn more...

SetStageVehicleAllowSeatSlide

Added in Version 1.19.

Sets whether or not the stage vehicle allows seat slide.

Learn more...

SetStageVehicleNoDestroyedJumpOut

Added in Version 1.18.1.

Sets whether or not the driver of the vehicle will jump out when it's destroyed.

Learn more...

SetStageVehicleReset

Added in Version 1.18.

Sets whether or not an AI car will automatically reset onto the road if it's off for too long in certain objective types.

Learn more...

Vehicle Characters

AddStageVehicleCharacter

Added in Version 1.19.

Add a character to a stage vehicle or the player's car for a stage.

Learn more...

RemoveStageVehicleCharacter

Added in Version 1.19.

Remove a character from a stage vehicle or the player's car upon reaching the stage.

Learn more...

SetStageVehicleCharacterAnimation

Added in Version 1.19.

Set the animation that a vehicle character will use.

Learn more...

SetStageVehicleCharacterJumpOut

Added in Version 1.19.

Set the character to jump out of the vehicle when it's destroyed.

Learn more...

SetStageVehicleCharacterScale

Added in Version 1.19.

Set the scale of the character in the stage vehicle.

Learn more...

SetStageVehicleCharacterVisible

Added in Version 1.19.

Set if the character is visible in the vehicle. This allows you to make characters visible in vehicles where the driver is not.

Learn more...

Condition Commands

AddCondTargetModel

Added in Version 1.18.

Specify the name of a valid model for a destroycars condition or a hitpeds condition.

Learn more...

SetCondDecay

Added in Version 1.18.

Set the decay delay and decay rate for the insidetrigger / outsidetrigger conditions.

Learn more...

SetCondDelay

Added in Version 1.18.

Specify a delay for the mission failed screen when failing various types of ASF conditions.

Learn more...

SetCondDisplay

Added in Version 1.18.

Set how any ASF condition displays to the user.

Learn more...

SetCondMessageIndex

Added in Version 1.18.

Set a message index for the insidetrigger / outsidetrigger conditions.

Learn more...

SetCondSound

Added in Version 1.18.

Set a sound to use for a hitpeds condition or the insidetrigger / outsidetrigger conditions.

Learn more...

SetCondSpeedRangeKMH

Added in Version 1.18.

Set a speed range for maintainspeed conditions.

Learn more...

SetCondThreshold

Added in Version 1.18.

Set a threshold for the insidetrigger / outsidetrigger conditions.

Learn more...

SetCondTotal

Added in Version 1.18.

Set the total amount required to fail various ASF conditions.

Learn more...

SetCondTrigger

Added in Version 1.18.

Specify the locator whose triggers will be used for the insidetrigger/outsidetrigger conditions.

Learn more...

Donut Team © 2020 · v4.0