Object Activation Action: Difference between revisions

From FSDeveloper Wiki
Jump to navigationJump to search
(Created page for object activation action)
 
(Added to the description and related)
Line 21: Line 21:
| XP9 = false
| XP9 = false
}}
}}
Object Activation actions are one of the most common types of actions, and you will use them a lot. This action simply activates or deactivates mission “objects” (like triggers, as well as scenery objects).  
Object Activation Actions activates or deactivates most different types of object; Triggers, AI Objects, Scenery Objects, and some Mission Objects. Do not use it for a Point Of Interest. Using ObjectActivationActions is important for the flow of your mission; you should only have the appropriate triggers activated to prevent the player from taking shortcuts.


{{Infobox-MSFS-Script-Element
{{Infobox-MSFS-Script-Element
Line 40: Line 40:


== Related ==
== Related ==
* See [[:Category:MSFS_Mission_Script|MSFS Mission Script]] for an overview of objects.
* To (de)activate event triggers use an [[MSFS_Mission_Script_-_Events|EventTriggerActivationAction]].
* To (de)activate event triggers use an [[MSFS_Mission_Script_-_Events|EventTriggerActivationAction]].
* To (de)activate event triggers use a [[Point_Of_Interest_Activation_Action|PointOfInterestActivationAction]].
* To (de)activate event triggers use a [[Point_Of_Interest_Activation_Action|PointOfInterestActivationAction]].


{{:Transclusion_MSFS_Mission_Script_-_Actions}}
{{:Transclusion_MSFS_Mission_Script_-_Actions}}

Revision as of 02:12, 14 October 2021


Object Activation Actions activates or deactivates most different types of object; Triggers, AI Objects, Scenery Objects, and some Mission Objects. Do not use it for a Point Of Interest. Using ObjectActivationActions is important for the flow of your mission; you should only have the appropriate triggers activated to prevent the player from taking shortcuts.

ObjectActivationAction

Changes the state of one or more triggers.


NewObjectState True: Change trigger to be activated.
False: Change the trigger to be non-activated.
ObjectReferenceList The object(s) you want to change the state of.

Possible uses

  • Enable a LandingTrigger after landing clearance is given.
  • Activate an InGameMarker.

Related


See MSFS Mission Script - Actions for an overview of actions and more info about actions in general.