Rapture
Posting Freak
Posts: 1,078
Threads: 79
Joined: May 2011
Reputation:
30
|
RE: Quick Lever Problem
If your stuck in a scripting problem, add "AddDebugMessage(string& asString, bool abCheckForDuplicates);" to your functions. Makes it a lot easier to isolate your issue(s) before posting on the forums.
void func1(string &in asEntity, int alState)
{
if (alState == 1)
{
AddLocalVarInt("Var1", 1);
func5();
AddDebugMessage("func1 = Var1 + " Var1, true);
}
}
void func2(string &in asEntity, int alState)
{
if (alState == 1)
{
AddLocalVarInt("Var1", 1);
func5();
AddDebugMessage("func2 = Var1 + " Var1, true);
}
}
void func3(string &in asEntity, int alState)
{
if (alState == 1)
{
AddLocalVarInt("Var1", 1);
func5();
AddDebugMessage("func3 = Var1 + " Var1, true);
}
}
void func4(string &in asEntity, int alState)
{
if (alState == 1)
{
AddLocalVarInt("Var1", 1);
func5();
AddDebugMessage("func4 = Var1 + " Var1, true);
}
}
void func5()
{
if(GetLocalVarInt("Var1") == 4)
{
SetLevelDoorLocked("level_cistern_1", false);
AddDebugMessage("func5 = Var1 + " Var1, true);
}
}
("func4 = Var1 + " Var1) is just to check your variables are working, might never know when you mess something up as simple as that.
|
|
11-03-2013, 07:23 AM |
|