Search the Community: Showing results for tags 'simple elevator'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Main Forum
    • Site Info
    • New members
    • The Lounge
    • Suggestion Box
    • Site Issues
  • Coding
    • PHP or HTML Coding
    • IPB Board
  • Latest Downloads
    • Beta Releases

Categories

  • Call of Duty 4
    • COD4 Scripts
    • COD4 Patches
    • COD4 Tools
  • Unreal Tournament (Series)
    • UT99
    • UT2004
    • UT3

Categories

  • Call of Duty 4
    • Mapping
    • Scripts

Forms

  • Appeal Form
    • Your Name
    • In-game Name
    • Your Email Address
    • Message Subject
    • Enter your message
    • Game Server

Categories

  • Articles

Blogs

  • LOCO Project Blog
  • kaitlynt4yz

Steam


Location


Interests


Facebook


Clan Tag


Player Name

Found 1 result

  1. simple elevator Simple Elevator

    Create the elevator as a script_brushmodel then assign the key/values key = targetname value = elevator Then create the triggers go to triggers use_touch create 2 of these 1 for the beginning and 1 for the end assign key/values key = targetname value = switch Then connect them by selecting your brushmodel then trigger then hit the [W] key to weld them. That's it for the map side Now create your script for the elevator to move. main() { level.elevatorUp = 1; level.elevatorMoving = false; thread elevator_start(); } elevator_start() { elevator = getentarray ("switch","targetname"); if ( isdefined(elevator) ) for (i = 0; i < elevator.size; i++) elevator[i] thread elevator_think(); } elevator_think() { for(;;) { self waittill ("trigger"); if (!level.elevatorMoving) thread elevator_move(); } } elevator_move() { elevatormodel = getent ("elevator", "targetname"); level.elevatorMoving = true; speed = 10; height = 581; elevatormodel playsound ("elevator"); elevatormodel movez (height - level.elevatorUp * 2 * height, speed); // When elevator is up, it will go down. elevatormodel waittill ("movedone"); level.elevatorUp ^= 1; // A smart trick, turns 1 to 0 and vice-versa. level.elevatorMoving = false; }

Mega Footer

You can configure this content inside your ACP under Customization > Edit > IPSFocus Mega Footer.

Mega Footer

You can configure this content inside your ACP under Customization > Edit > IPSFocus Mega Footer.

Mega Footer

You can configure this content inside your ACP under Customization > Edit > IPSFocus Mega Footer.

Mega Footer

You can configure this content inside your ACP under Customization > Edit > IPSFocus Mega Footer.