headslesno.blogg.se

War thunder cdk
War thunder cdk







war thunder cdk

Press Add to add a new variableĪfter pressing it a new window should appear, you can select a name for it under Variable name: and select its type under Variable type:, there are 10 of them, but for now I'll only explain how to use string (text), integer (number without a fractional component), real (number with a fractional component) and bool (used for creating true or false statements) 3.

war thunder cdk

Now you should be able to see a window with multiple tabs that can be pressed, Add for adding new variables, Edit for editing, Del for deleting and Up and Down to move them. Choose on the side toolbar Variables, you can find it under Triggers tab Note: You will need a working singleplayer mission before you start 1. Note: Before reading this make sure that you know basics about creating triggers and other things related to them (events, actions, conditions), if not then check the links above How to create a variable

  • All of these instructions from this article are valid for both singleplayer and multiplayer missions.
  • You can't store more than one information in the same variable.
  • You can find some basic information about actions and conditions with variables here, all their names start with var. If you create a string variable named t1_unit_01 you will be able to see it in target or object tab which you can find in actions similar to unitSetProperties where you can select AI or player units, it's name will be displayed as it will be displayed similarly in other actions too.Īs mentioned before, they can also be used to optimize missions, but only when you need a really high amount of triggers that do perform similar functions, in case of small mission you won't even notice a difference and usually you will need more triggers than when just using simple actions without variables, so this article will explain how to use them and show a good use of them.

    war thunder cdk

    Variables in mission editor are used to store information like text, numbers or booleans used for creating true or false statements, they can be used to optimize code of your mission and also to create things that are normally impossible without using them. 2.1.4 Creating triggers that give a number to b_area_xx_int variables and keep checking them until the mission ends.2.1.3 Creating triggers that checks all areas at the start of mission.2.1 Creating a set of triggers that checks multiple areas for units.1.2 Ways of storing information in variables.









    War thunder cdk