![]() |
![]() |
Work continues |
![]() |
![]() |
![]() |
![]() |
|||||
General Info Main Page Latest News Schedule What is it? About Matt About This Site Duke Enhancements Duke Insider More Information WW2GI Enhancements |
Variables
These will be usable by the CON as well as special variables will be used by the weapon system. These variables are CASE SENSITIVE. (FOOBAR is NOT the same as FooBar) There are 'system' variables that allow you to change the way the weapon (and other) systems work. In addition, you can add your own variables in your code. Take a look at what Tuco has done in these CONs: there's some pretty amazing stuff. I'm sure that you can come up with more. Here's the additions to the CON language: gamevar <name> <value> <flags> Defines and sets the initial value for a variable. Valid flags are: 0 Global (default) 1 PERPLAYER Variable is per-player 2 PERACTOR Variable is per-actor ifvarg <varname>
<value> setvar <varname>
<value> addvar <varname>
<value> addvarvar
<varname1> <varname2> setvarvar
<varname1> <varname2> There are also pre-defined 'system' variables that can be overridden. See below for a list of these. Example of definitions: gamevar FAVORITE_WEAPON 0 1 Defines a new variable of 'FAVORITE_WEAPON' per-player. In the code (for example, in a state or actor), the following could be
executed: |
||||
![]() |