A Community discussion forum for Halo Custom Edition, Halo 2 Vista, Portal and Halo Machinima

Home  Search Register  Login Member ListRecent Posts
  
 
»Forums Index »Halo Custom Edition (Bungie/Gearbox) »Halo CE Technical / Map Design »(Killbox) Script Help

Author Topic: (Killbox) Script Help (1 messages, Page 1 of 1)
Moderators: Dennis

cellista92
Joined: Jun 24, 2008

~


Posted: Dec 18, 2013 10:17 AM    Msg. 1 of 1       
Ok, my goal is to make a killbox script such that the following conditions are satisfied:

  • If the player enters the killbox, the player dies instantaneously.

  • If the player entered the killbox, either the player's camera detaches at that spot or the player respawns right away.



This is my current relevant script:

(global short count 0)		;;Stores player value in the player list
(global boolean slipped false) ;;Stores whether player fell in the killbox
(script continuous kill_box
(if (>= count player_spawn_count) (set count 0)) ;;Checks only for players in game
;;Teleports the player inside the killbox to a flag
(if (volume_test_object death (list_get (players) count)) (object_teleport (list_get (players) count) crush))
;;Confirms player was teleported
(if (volume_test_object death (list_get (players) count)) (set slipped true) (set slipped false))
;;Teleports a warthog after a player to crush the player
(if slipped (object_teleport biped_crusher crush) (object_teleport biped_crusher default))
(set count (+ count 1))
)


Currently, condition 1 is satisfied. I am uncertain if condition 2 can be satisfied.

My question is, "Can the multiplayer cameras be manipulated by a script? If not, is there a global for respawn times? If not, is there an alternate solution?"

I am not sure if my script overcomplicates the killbox; I'll consider alternative suggestions.
Edited by cellista92 on Dec 18, 2013 at 10:36 AM

 

 
Previous Older Thread    Next newer Thread







Time: Thu January 19, 2023 7:12 AM 125 ms.
A Halo Maps Website