allVariables – Talk
Jump to navigation
Jump to search
SilentSpike (talk | contribs) m (sig) |
SilentSpike (talk | contribs) m (Explained the same thing twice) |
||
Line 8: | Line 8: | ||
};</code> | };</code> | ||
I guess I don't understand how the different namespaces work either. Would this command return ["_myVariable"] in both cases? - [[User:DreadedEntity|DreadedEntity]] ([[User talk:DreadedEntity|talk]]) 20:50, 12 December 2014 (CET) | I guess I don't understand how the different namespaces work either. Would this command return ["_myVariable"] in both cases? - [[User:DreadedEntity|DreadedEntity]] ([[User talk:DreadedEntity|talk]]) 20:50, 12 December 2014 (CET) | ||
:Let's assume that you're using global variables (since I'm not sure if local variables are actually in any namespace). It would return all variables in the namespace, [[setVariable]] is simply a handy means of setting a variable. So for example, it would return the variable in your first and second example | :Let's assume that you're using global variables (since I'm not sure if local variables are actually in any namespace). It would return all variables in the namespace, [[setVariable]] is simply a handy means of setting a variable. So for example, it would return the variable in your first and second example. --[[User:SilentSpike|SilentSpike]] ([[User talk:SilentSpike|talk]]) 21:20, 12 December 2014 (CET) |
Revision as of 21:22, 12 December 2014
I don't really play around on the dev build so I'm a little confused with this command. Does it return all variables or only the ones created with setVariable?
for example:
_myVariable = 0;
//same as
with missionNamespace do
{
_myVariable = 0;
};
I guess I don't understand how the different namespaces work either. Would this command return ["_myVariable"] in both cases? - DreadedEntity (talk) 20:50, 12 December 2014 (CET)
- Let's assume that you're using global variables (since I'm not sure if local variables are actually in any namespace). It would return all variables in the namespace, setVariable is simply a handy means of setting a variable. So for example, it would return the variable in your first and second example. --SilentSpike (talk) 21:20, 12 December 2014 (CET)