SwedishElk
04.15.08, 13:14
Got a wierd problem.
Got a lever taged Lvl1_Levr_01
Got a door taged Lvl1_Door_01
Got a floorplate taged Lvl1_Plat_01
In script I get the door associated with the lever by
string sLvl = GetSubString(GetTag(OBJEC T_SELF), 0, 4);
string sNumber = GetSubString(GetTag(OBJEC T_SELF), 10, 2);
object oDoor = GetObjectByTag(sLvl + "_Door_" + sNumber);
Works perfect.
But!
string sLvl = GetSubString(GetTag(OBJEC T_SELF), 0, 4);
string sNumber = GetSubString(GetTag(OBJEC T_SELF), 10, 2);
object oPlate = GetObjectByTag(sLvl + "_Plat_" + sNumber);
Does not work, there I have to hardcode the tag, wich sucks of course.
The floor plate is just a normal placeable. And it finds it if I hardcode the tag!?
Any ideas?
Got a lever taged Lvl1_Levr_01
Got a door taged Lvl1_Door_01
Got a floorplate taged Lvl1_Plat_01
In script I get the door associated with the lever by
string sLvl = GetSubString(GetTag(OBJEC T_SELF), 0, 4);
string sNumber = GetSubString(GetTag(OBJEC T_SELF), 10, 2);
object oDoor = GetObjectByTag(sLvl + "_Door_" + sNumber);
Works perfect.
But!
string sLvl = GetSubString(GetTag(OBJEC T_SELF), 0, 4);
string sNumber = GetSubString(GetTag(OBJEC T_SELF), 10, 2);
object oPlate = GetObjectByTag(sLvl + "_Plat_" + sNumber);
Does not work, there I have to hardcode the tag, wich sucks of course.
The floor plate is just a normal placeable. And it finds it if I hardcode the tag!?
Any ideas?