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

SetCondDisplay

Set how any ASF condition displays to the user.

Context

This command should be called between calls to AddCondition and CloseCondition.

Syntax

SetCondDisplay( display_type );

Game.SetCondDisplay( display_type )

In any ASF Condition

  • display_type: The type of display to use to convey (or hide) the condition to the player.
    • none: The display will be hidden.

In maintainSpeed Conditions

  • display_type: The type of display to use to convey (or hide) the condition to the player.
    • fill: The bar will be full when the player is near the midpoint of the specified speed range.
    • midpoint: The bar will be empty when the player is near the lower limit and full when the player is near the higher limit.
      • Default.
    • none: The display will be hidden.

Examples

AddCondition("hitpeds");
	SetCondDisplay("none");
CloseCondition();

Game.AddCondition("hitpeds")
	Game.SetCondDisplay("none")
Game.CloseCondition()

Notes

No additional notes.

Version History

1.18.1

Added the "none" display mode that works on all ASF conditions.

1.18

Added this command.

Donut Team © 2024 · v4.0