Replace the
door2 waittill("rotatedone");
to
break;
Like this:
Also, you must finish each line with '';''PHP Code:
if(t==10)
{
door1 rotateyaw(90,2);
door2 rotateyaw(-90,2);
break;
}
t++;
wait 60;
Thats why you got the previous error xD
Printable View
Replace the
door2 waittill("rotatedone");
to
break;
Like this:
Also, you must finish each line with '';''PHP Code:
if(t==10)
{
door1 rotateyaw(90,2);
door2 rotateyaw(-90,2);
break;
}
t++;
wait 60;
Thats why you got the previous error xD
Ok, Pollo, but i changed my mind a little. A two door entrance is just so hard to get working properly, so i decided that only one of them will open so the castle will just be half opened ;)
But can i ask, what is the "if(t==10)" and "t++;" for?
But I got some help by a friend, but i haven't heard from him in two days. The problem is still that the doors doesn't open at all, sot even a sign of it..
In radiant:
Key: targetname
Value: lol1
In gsc-file:
targetname and lol1 and lol2
Nothing wrong as far i can see..
Show your gsc file
The mp_hs.gsc:
The "castle/door" file:PHP Code:
main()
{
maps\mp\_load::main();
maps\mp\teleportenter::main();
maps\mp\logo::main();
maps\mp\castle::door();
setExpFog(0.0001, 0.55, 0.6, 0.55, 0);
// setCullFog(0, 16500, 0.55, 0.6, 0.55, 0);
ambientPlay("ambient_france");
game["allies"] = "american";
game["axis"] = "german";
game["attackers"] = "allies";
game["defenders"] = "axis";
game["american_soldiertype"] = "normandy";
game["german_soldiertype"] = "normandy";
setCvar("r_glowbloomintensity0", ".25");
setCvar("r_glowbloomintensity1", ".25");
setcvar("r_glowskybleedintensity0",".3");
}
PHP Code:
door()
{
door1= getent( "lol1", "targetname" );
door2= getent( "lol2", "targetname" );
t = 0;
while( true )
{
if(t==10)
{
door1 rotateyaw(90,2);
door2 rotateyaw(-90,2);
break;
}
t++;
wait 60;
}
}
put thread in front of all your custom scripts
thread maps/mp etc
Hmm, i'm not sure what you mean with that, can you specify?