|
External Variable are used to
define variables that originate in a sub-sequence. in other
words, If you create a sequence, and you need to access the
variables within the sequence, from outside of the sequence,
then you use eExternal Variables in the sub-sequence in order
to access them from outside the sequence.
• External variables are always Black in Kismet (unless
currently selected as in the figure below) until they are assigned
a value, at which point they will change color to match the
type of value. For example, in the images below, the external
variable turned green after I connected it to the set string
action.
• The VariableLabel field is where you assign the value
of the variable. This can be a string value, an integer, etc.
This is what the label of the nub in the sequence will display
when you look at the sequence in the main kismet.
In the image below, this kismet is enclosed in a sub-sequence.
I then created the action of a 'Set String', hooked up an external
variable, and then assigned it a Variable Label of 'Testy'.
|
|
In the image below, we are back at the main kismet
level. We see the sub-sequence, with a variable node labeled
'Testy'. Now we can access the testy variable in the main kismet
field, while allow all the sub-sequence action to take place
in the sub-sequence.
|
|