Skip to content
  • 0 Unread 0
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Collapse

Plutonium

  1. Home
  2. BO2 Modding Support & Discussion
  3. Need Help<3

Need Help<3

Scheduled Pinned Locked Moved BO2 Modding Support & Discussion
1 Posts 1 Posters 127 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R1pzieundefined Offline
    R1pzieundefined Offline
    R1pzie
    wrote on last edited by
    #1

    i Need Help with this code i try to fix it be when i go into this spot i dont go up like mw2 ele type stuff
    ( (-1636.6,-1670.39,88.625), (-1636.6,-1670.39,567.12) );

    ElevatorThink(enter, exit)
    {
    self endon("disconnect");
    while(1)
    {
    foreach(player in level.players)
    {
    if(Distance(enter, player.origin) < 50)
    {
    self setOrigin( enter );
    self thread ElevatorFloat(enter, exit);
    wait 5;
    }
    }
    wait .25;
    }
    }
    ElevatorFloat(enter, exit)
    {
    self.Float = spawn( "script_model", self.origin );
    self playerLinkTo( self.Float );
    for(;;)
    {
    wait 0.01;
    if(Distance(exit, self.origin) < 50)
    {
    self.Elevate = self.origin +(0,0,5);
    self.Float moveTo( self.Elevate, 0.01 );
    }
    else
    {
    self setOrigin( exit );
    self unlink();
    return;
    }
    }
    }

    1 Reply Last reply
    0

    Hello! It looks like you're interested in this conversation, but you don't have an account yet.

    Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

    With your input, this post could be even better 💗

    Register Login
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Unread 0
    • Recent
    • Tags
    • Popular
    • Users
    • Groups