Thread: Lift in MapEdit

Results 1 to 8 of 8
  1. #1
    prisma's Avatar
    Join Date
    Feb 2009
    Gender
    male
    Posts
    236
    Reputation
    11
    Thanks
    42
    My Mood
    Amazed

    Lift in MapEdit

    Ok...
    I'm working on a lift which activates when you stand on it.
    Got it and its working... But if the lift gets up I fall trough the lift. Some 1 knows why ? I already tried it to give the lift a place and link to the player if he is in range...
    [PHP] if(Distance(self.origin, player.origin) <50){
    place = "lift";
    while(place == "lift"){
    player linkto(level.center.origin);
    }
    }[/PHP]
    But doesnt work

    This is my current code for the lift:
    [PHP]LiftThink(open, close)
    {
    while(1)
    {
    if(self.hp > 0){
    self waittill ( "triggeruse" , player );
    if(player.team == "allies"){
    if(self.state == "open"){
    self MoveTo(close, level.doorwait);
    wait level.doorwait;
    self.state = "close";
    continue;
    }
    if(self.state == "close"){
    self MoveTo(open, level.doorwait);
    wait level.doorwait;
    self.state = "open";
    wait 2;
    self thread ResetLift(open);
    continue;
    }
    }
    if(player.team == "axis"){
    if(self.state == "open"){
    self MoveTo(close, level.doorwait);
    wait level.doorwait;
    self.state = "close";
    continue;
    }
    if(self.state == "close"){
    self MoveTo(open, level.doorwait);
    wait level.doorwait;
    self.state = "open";
    wait 2;
    self thread ResetLift(open);
    continue;
    }
    }
    }
    }
    }



    LiftUse(range)
    {
    self endon("disconnect");
    while(1)
    {
    foreach(player in level.players)
    {
    if(Distance(self.origin, player.origin) <= self.range){
    if(player.buttonPressed[ "+activate" ] == 1){
    self notify( "triggeruse" , player);
    player moveto(level.center);
    }
    }
    }
    wait 0.45;
    }
    }

    ResetLift(open)
    {
    while(1)
    {
    self waittill("RESETDOORS");
    self MoveTo(open, level.doorwait);
    self.state = "open";
    }
    }[/PHP]

    I would love you if you get it working for me! /

  2. #2
    TheSaboteur's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Location
    wasteland,church
    Posts
    454
    Reputation
    10
    Thanks
    30
    My Mood
    Goofy
    whaah xDi think u mean a elavator XD ;pp


    w8 ill look for i had some nice codes for it that activates when u press [{+activate}]


    hold on



    Bring a Ding Ding Baby!

  3. #3
    AZUMIKKEL's Avatar
    Join Date
    May 2010
    Gender
    male
    Location
    My moms house... what's so funny about that?
    Posts
    790
    Reputation
    19
    Thanks
    462
    My Mood
    Sneaky
    Quote Originally Posted by TheSaboteur View Post
    whaah xDi think u mean a elavator XD ;pp


    w8 ill look for i had some nice codes for it that activates when u press [{+activate}]


    hold on
    He doesnt need that.


    @OP: try making it move slower
    www.YouTube.com/MpKiller100

  4. #4
    TheSaboteur's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Location
    wasteland,church
    Posts
    454
    Reputation
    10
    Thanks
    30
    My Mood
    Goofy
    he want a cp that go up and down right? o.0



    Bring a Ding Ding Baby!

  5. #5
    AZUMIKKEL's Avatar
    Join Date
    May 2010
    Gender
    male
    Location
    My moms house... what's so funny about that?
    Posts
    790
    Reputation
    19
    Thanks
    462
    My Mood
    Sneaky
    Quote Originally Posted by TheSaboteur View Post
    he want a cp that go up and down right? o.0
    Why would he need child por.... oh.
    www.YouTube.com/MpKiller100

  6. #6
    prisma's Avatar
    Join Date
    Feb 2009
    Gender
    male
    Posts
    236
    Reputation
    11
    Thanks
    42
    My Mood
    Amazed
    /kicking it up to the top /

  7. #7
    prisma's Avatar
    Join Date
    Feb 2009
    Gender
    male
    Posts
    236
    Reputation
    11
    Thanks
    42
    My Mood
    Amazed
    C'mon ladies... I need help

  8. #8
    Yamato's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Posts
    839
    Reputation
    13
    Thanks
    152
    My Mood
    Amazed
    Quote Originally Posted by prisma View Post
    C'mon ladies... I need help
    I know what you are saying, I would like to add it too, to my zombie mod, but dont know how to do it, :S

Similar Threads

  1. [SOLVED]Quarantine Chaos Zombies v2 MapEdit
    By Arasonic in forum Call of Duty Modern Warfare 2 Help
    Replies: 2
    Last Post: 08-23-2010, 10:40 PM
  2. ban lift request
    By zerg32195 in forum Flaming & Rage
    Replies: 0
    Last Post: 07-05-2010, 06:09 AM
  3. BANS HAVE BEEN LIFTED
    By Ke$ha in forum CrossFire Discussions
    Replies: 8
    Last Post: 06-26-2010, 10:11 AM
  4. [Release] BlackShot Trainer Redesigned 26.03.2010 Pass Lifted
    By macko225 in forum Blackshot Hacks & Cheats
    Replies: 15
    Last Post: 05-22-2010, 04:27 AM
  5. Thanks for lifting the ban Dave
    By scimmyboy in forum Member Introduction & Return
    Replies: 45
    Last Post: 12-12-2009, 03:54 PM