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 General Discussion »Some help with broken scripts.

Author Topic: Some help with broken scripts. (2 messages, Page 1 of 1)
Moderators: Dennis

grunt_eater
Joined: Jan 26, 2011

Everything except biped rigging.


Posted: Apr 10, 2013 11:38 PM    Msg. 1 of 2       
So i have a script i'm trying to use, but when i do it doesn't do anything.

First. I wanted to make the rider ejection have a delay on it, seeing as half the time when you get flipped out, the vehicle turns right back over anyway. So i made this script.
(script continuous stuff
(set rider_ejection 0)
(sleep 90)
(set rider_ejection 1)
)

And hoped that for the most part between updates you would have time to roll back on top.
In theory this should turn off, wait 3 seconds, and flip it on then back off. But in game i notice no difference. It still automatically flips me out, i tried it numerous times. Any theory as to why it's not activating?

Second. I had a thought about making zombies scripted into a map.
(script dormant change
(change_team 0)
)
(script continuous check
(begin
(sleep_until (unit_get_health (unit (list_get (players) 0)) 0)
(wake change)) ;;checks if player has died, then switches team.
)

The problem is, if i do this for every player then any time the first person dies, everyone switches teams. Ideas? Lol.


kirby_422
Joined: Jan 22, 2006

Apparently public enemy number 1?


Posted: Apr 10, 2013 11:57 PM    Msg. 2 of 2       
Unless your waiting until you find a vehicle upside down, then the 3 seconds isnt accurate at all.

For changing teams, thats obvious, its only checking player0. You need to check the local player. You're gonna have a horrible time doing that if you dont use OS. Anyways, have a spawn area, moment you join the game, monitor the spawn area for 5 seconds, see whose there, assuming nobody else was respawning when you joined, you can get the local player. Store it in a global variable, wait for the unit stored in that global to be dead, run the team switch. That way, everyone is hopefully monitoring their own player.

 

 
Previous Older Thread    Next newer Thread







Time: Thu January 19, 2023 4:10 AM 156 ms.
A Halo Maps Website