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