(04-21-2012, 05:59 PM)P44RTHURN4X Wrote: No, this also don't works anyway... So I have to make maps completely without Timer-Scripting
Updated:
SetSwingDoorOpen("carbinet_smash_obj", t
ure, true);
PlaySoundAtEntity("react_pant_snt", "enemy_hallucination_disappear.snt", 0, false);
Simply proof-reading your code could go a long way, and you should also download either Geany or Notepad++ to do some of your proof-reading for you.
I removed two of the errors, because I saw that they were names.
Edit 3:
After actually looking at the code, I spotted it: You're calling each timer twice, essentially ending what you're doing a microsecond after you've done it. Don't call them at the same time. Actually, don't call the functions twice at all.
If we're going to use SilentStrikers code:
AddTimer("Timer_1", 2, "StartTimers");
AddTimer("Timer_1_2", 4, "StartTimers");
AddTimer("Timer_2", 6, "StartTimers");
AddTimer("Timer_2_2", 8, "StartTimers");
AddTimer("Timer_3", 10, "StartTimers");
AddTimer("Timer_3_2", 12, "StartTimers");
}
void StartTimers(string &in asTimer)
{
if(asTimer == "Timer_1")
{
//Do stuff
}
else if(asTimer == "Timer_1_2")
{
//Do Other stuff
}
else if(asTimer == "Timer_2")
{
// Do even more stuff
}
// ...and so on...
}