Thread: easy one..

Results 1 to 3 of 3
  1. #1
    TheSaboteur's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Location
    wasteland,church
    Posts
    454
    Reputation
    10
    Thanks
    30
    My Mood
    Goofy

    easy one..

    dont know wy but i cant find the sulution...


    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;
    				}
    }
    }

    i want it on a command like [{+activate}] how??



    = thanks



    Bring a Ding Ding Baby!

  2. #2
    spiritwo's Avatar
    Join Date
    Aug 2010
    Gender
    male
    Location
    Rochester, NY
    Posts
    709
    Reputation
    17
    Thanks
    76
    My Mood
    Happy
    [php]
    self notifyonplayercommand ("F", "+activate");
    self waittill ("F");
    // Do stuff
    [/php]
    --
    "Life is tough. It's tougher if you're stupid."

    Spiritwo |






  3. #3
    TheSaboteur's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Location
    wasteland,church
    Posts
    454
    Reputation
    10
    Thanks
    30
    My Mood
    Goofy
    im lazy atm xD i tried that but where to be placed i did it
    under the loop.. but dind work

    i did this

    Code:
    nukelift(depart, arivee, angle, time)
    {
    	Asc = spawn("script_model", depart );
    	Asc setModel("com_plasticcase_enemy");
    	Asc.angles = angle;
    	Asc Solid();
    	Asc CloneBrushmodelToScriptmodel( level.airDropCrateCollision );
    	
    	Asc thread Escalatore(depart, arivee, time);
    }
    
    Escalatore(depart, arivee, time)
    {
    	
    	
                self notifyonplayercommand ("E", "+activate");
                                       
    
    for(;;)
        {
                                     self waittill ("E");
    
    				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;
    				}
    
    
    
    }
    }
    Last edited by TheSaboteur; 11-06-2010 at 08:18 AM.



    Bring a Ding Ding Baby!

Similar Threads

  1. [Request] Can any one make a Mod, that all heads go big.. so that easy headshot?
    By graylhandz in forum CrossFire Mods & Rez Modding
    Replies: 24
    Last Post: 09-30-2011, 02:47 PM
  2. How to make 1035 zp in about 3 mins.(easy& one Sur.vey)
    By killingspree888 in forum CrossFire Tutorials
    Replies: 30
    Last Post: 09-23-2010, 09:18 PM
  3. *NEW* CrossFire Glitches (Easy ones)
    By ineverhack in forum CrossFire Glitches
    Replies: 40
    Last Post: 03-30-2010, 09:48 PM
  4. Easy Nexon | All in ONE Modding
    By Zoom in forum Combat Arms Mods & Rez Modding
    Replies: 38
    Last Post: 03-07-2010, 02:06 PM
  5. Yay another one xD
    By h0ang in forum Art & Graphic Design
    Replies: 4
    Last Post: 01-27-2006, 04:01 PM