Integer variable not an integer?
by Dan Hargrove · in Torque Game Builder · 11/14/2005 (2:27 pm) · 1 replies
I have a global variable that I set thusly:
I would then like to use this variable as follows:
However, when I do so, it doesn't return anything. In fact, the only was I can return something is if I hardcode the integer offset, like this:
I've been looking through the threads (albeit not an exhaustive search yet) but have not been able to find anything on this. Does anyone have something they could point me to?
Thanks
$currentLevelNum = 0;
I would then like to use this variable as follows:
%levelgrp = $levelGroup.getObject( $currentLevelNum );
However, when I do so, it doesn't return anything. In fact, the only was I can return something is if I hardcode the integer offset, like this:
%levelgrp = $levelGroup.getObject( 0 );
I've been looking through the threads (albeit not an exhaustive search yet) but have not been able to find anything on this. Does anyone have something they could point me to?
Thanks
Torque Owner Danny Koo
%levelgrp = levelGroup.getObject($currentLevelNum);
Sim Group doesn't have localization variables.