kolafresh
9th January 2015, 14:09
Hey everyone I try to make a door with a touch trigger next to it to make the door rotate, i've tryed to do like this script
main()
{
door = getent ("Secret","targetname");
trig = getent ("open","targetname");
while (1)
{
trig waittill ("trigger");
door rotateyaw (-80,3,1,1);
door waittill ("rotatedone");
wait (2.5);
door rotateyaw (80,3,1,1);
door waittill ("rotatedone");
wait (2);
}
}
and put this in my main gsc file
main()
{
maps\mp\_load::main();
thread door1();
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");
maps\mp\mp_door::main();
}
... idk if im a noob or what but please help =)
main()
{
door = getent ("Secret","targetname");
trig = getent ("open","targetname");
while (1)
{
trig waittill ("trigger");
door rotateyaw (-80,3,1,1);
door waittill ("rotatedone");
wait (2.5);
door rotateyaw (80,3,1,1);
door waittill ("rotatedone");
wait (2);
}
}
and put this in my main gsc file
main()
{
maps\mp\_load::main();
thread door1();
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");
maps\mp\mp_door::main();
}
... idk if im a noob or what but please help =)