Results 1 to 3 of 3
  1. #1
    EpicPlayer's Avatar
    Join Date
    Nov 2010
    Gender
    male
    Posts
    628
    Reputation
    13
    Thanks
    155

    Elevator Mapedit (Not the teleporterflag one)

    Hey guys, been a long time since I asked somenthing...

    Okay, so what I want is a elevator... similiar to the one in Black ops zombies, you can press to call it and stuffs...

    Everytime I try make one for the MapEdit.gsc I get a syntax error xD, anyone got any advice?

  2. #2
    Yamato's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Posts
    839
    Reputation
    13
    Thanks
    152
    My Mood
    Amazed
    Here is one, I have more kinds of moving care packages, but this one is ok, :P

    Code:
    CreateAsc(depart, arivee, angle, time)
    {
    	Asc = spawn("script_model", depart );
    	Asc setModel("com_plasticcase_friendly");
    	Asc.angles = angle;
    	Asc Solid();
    	Asc CloneBrushmodelToScriptmodel( level.airDropCrateCollision );
    	
    	Asc thread Escalator(depart, arivee, time);
    }
    
    Escalator(depart, arivee, time)
    {
    	while(1)
    	{
    				if(self.state == "open"){
    					self MoveTo(depart, time);
    					wait (time*1.5);
    					self.state = "close";
    					continue;
    				}
    				if(self.state == "close"){
    					self MoveTo(arivee, time);
    					wait (time*1.5);
    					self.state = "open";
    					continue;
    				}
    	}
    }

  3. The Following User Says Thank You to Yamato For This Useful Post:

    EpicPlayer (01-22-2011)

  4. #3
    EpicPlayer's Avatar
    Join Date
    Nov 2010
    Gender
    male
    Posts
    628
    Reputation
    13
    Thanks
    155
    Quote Originally Posted by Yamato View Post
    Here is one, I have more kinds of moving care packages, but this one is ok, :P
    Thanks but I wanted one that the player presses a button to make it go up and down :/
    Already got one like this... :S