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 »Help would be appreciated

Author Topic: Help would be appreciated (4 messages, Page 1 of 1)
Moderators: Dennis

Polamee
Joined: Feb 25, 2008

MP2SPMT's founder


Posted: Mar 20, 2009 10:29 AM    Msg. 1 of 4       
1. What's the scripting command that lets stuff happen after the player activates a switch?

2. I heard that 30 script "Units" is 1 second. True?

3. How do I script a timer? Like in the end of The Maw. I've heard it has to do with setting variables and such in static scripts and referring to it in another script. Can anyone give me the scripts?

Thanks in advance!
Edited by Polamee on Mar 20, 2009 at 10:31 AM


Jesse
Joined: Jan 18, 2009

Discord: Holy Crust#4500


Posted: Mar 20, 2009 10:03 PM    Msg. 2 of 4       
I believe the "Easy Halo Scripter" has the command for the switch toggle.


DarkZealot
Joined: Jan 1, 2008

Time management: 40% Xbox, 30% PC, 30% Skating


Posted: Mar 20, 2009 10:15 PM    Msg. 3 of 4       
1:

(if (device_get_position 1) ) {
blahblahblah
}

2:

Not sure about that one.

3:
(hud_set_timer_time )

If 1 is wrong, ignore it. I haven't scripted for some time....


Me KS
Joined: Feb 2, 2008

Desire is Reality. Xfire: jetmaster23


Posted: Mar 20, 2009 10:22 PM    Msg. 4 of 4       
1. Those kinds of events are tested for with this command:

(device_get_position "device")
gets the current position of the given device (used for devices without explicit device groups)

Most of the time it's a lot more than just testing for this though. But if you're just looking for the basic command, that's the one.

2. The "units" you're talking about are called "ticks" which basically are the minimum time unit in the game. And yes, 30 ticks per second.

3. It's easier than that. One command sets up, starts, and shows the timer:

(hud_set_timer_time "short" "short")
sets the time for the timer to "short" minutes and "short" seconds, and starts and displays timer

Of course, you'll probably want to move it, set a warning time, read how much time is left, etc. Here are the commands for all of that:

(hud_set_timer_warning_time "short" "short")
sets the warning time for the timer to "short" minutes and "short" seconds

(hud_set_timer_position "short" "short" "hud_corner")
sets the timer upper left position to (x, y)="("short", "short")

(show_hud_timer "boolean")
displays the hud timer

(pause_hud_timer "boolean")
pauses or unpauses the hud timer

(hud_get_timer_ticks)
returns the ticks left on the hud timer

 

 
Previous Older Thread    Next newer Thread







Time: Fri January 20, 2023 9:47 PM 141 ms.
A Halo Maps Website