Make a door, then on the hinge side of the door, make an origin brush. The centre of that brush is where the rotation will happen.
I recommend scripting btw.
/me would also use the search feature

Moderator: Core Staff
Code: Select all
Main () //Always start scripting with this
{
thread Spinning_Object; //This will tell the script to run these threads (you can have more than 1)
}
Spinning_Object() //This is the thread called from above
{
Spinner = getent ("<targetname>","targetname"); //This gives the door a script reference
while (1) //This makes the thread repeat when ti gets to the end.
{
Spinner rotateto ((0, 0, 360), 2); // This will make the door rotate 360 degrees on its Z-Axis from its origin (the 2 is seconds)
}
}
Code: Select all
main()
{
ambientPlay("ambient_mp_carentan"); //Background Noise
maps\mp\_load::main();
maps\mp\<mapname>_script::main(); //Loads the script
game["allies"] = "british";
game["axis"] = "german";
game["british_soldiertype"] = "airborne";
game["british_soldiervariation"] = "normal";
game["german_soldiertype"] = "fallschirmjagergrey";
game["german_soldiervariation"] = "normal";
game["attackers"] = "allies";
game["defenders"] = "axis";
}
Stop hijacking threads and email me!Rince wrote:bored thot id do a random post
drofder seems 2 not wanna do our map:
|
Code: Select all
Main ()
{
thread spinner();
}
spinner()
{
spinner = getent("spinner","targetname");
while (1)
{
spinner rotateyaw(-360, 5); //5 = seconds to rotate. change rotateyaw to either rotateroll or rotatepitch to change the rotation axis
spinner waittill("rotatedone");
}
}
Yep, thats perfect codingLuke wrote:After a lot of trial and error and searching i finally got it to work how i (and sam) wanted it, so its a non stop rotating thing.
Code: Select all
Main () { thread spinner(); } spinner() { spinner = getent("spinner","targetname"); while (1) { spinner rotateyaw(-360, 5); //5 = seconds to rotate. change rotateyaw to either rotateroll or rotatepitch to change the rotation axis spinner waittill("rotatedone"); } }
Users browsing this forum: No registered users and 3 guests