Results 1 to 10 of 17

Thread: Need help!

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #5
    Back for the Russian Halo p0lar_bear's Avatar
    Join Date
    Sep 2006
    Location
    Connecticut
    Posts
    5,572

    Re: Need help!

    This script assumes you have two scenario_structure_bsp tags defined in your scenario, and two trigger volumes named "vol1" and "vol2". vol1 is placed at the "end" of the first BSP, and vol2 should actually be placed "before" vol1. This way, a player who would trip vol1 needs to walk through vol2 first, and vice-versa.
    Code:
    ;;Variables
    (global short currentBSP 0)
    
    ;;Scripts
    (script continuous switchbsp
     ;;Changing from BSP 0 to BSP 1.
     (if (and (volume_test_objects vol1 (players)) (= currentBSP 0))
      (begin
       (switch_bsp 1)
       (set currentBSP 1)
      )
     )
     ;;Changing from BSP 1 to BSP 0
     (if (and (volume_test_objects vol2 (players)) (= currentBSP 1))
      (begin
       (switch_bsp 0)
       (set currentBSP 0)
      )
     )
    )
    Also, welcome to the forums.
    Last edited by p0lar_bear; August 21st, 2009 at 05:15 PM.
    Reply With Quote

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •