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 »Multiple Scripts in One

Author Topic: Multiple Scripts in One (3 messages, Page 1 of 1)
Moderators: Dennis

Xoronatus
Joined: Dec 6, 2010

Taking a break


Posted: Sep 16, 2011 12:45 AM    Msg. 1 of 3       
So I know only 4 .hsc's can be compiled into a map. Can I have more than one script with a .hsc

For example:

(script startup bleh
(sleep 120)
(sv_say "hello")
(script continuous arg
(sleep 90)
(object_create tree)
)

So this would make it so that at the beginning of the script the server would say "hello"
And every 90 ticks it would create my object "tree," for the rest of the game? I could do that right? Do I need dormant scripts or is this fine?


Pepzee
Joined: Sep 9, 2010

Retired Halo Modder


Posted: Sep 16, 2011 01:44 AM    Msg. 2 of 3       
Quote: --- Original message by: Xoronatus
So I know only 4 .hsc's can be compiled into a map. Can I have more than one script with a .hsc?

So this would make it so that at the beginning of the script the server would say "hello"
And every 90 ticks it would create my object "tree," for the rest of the game? I could do that right? Do I need dormant scripts or is this fine?


You can put as many commands into a .hsc file as you want. There is no need for more than one .hsc file.

(script startup pepzee_iz_leet
(sleep 120)
(sv_say "hello"))

(script continuous we_liek_trees
(sleep 90)
(object_create tree))


Just put those two paragraphs in one script file, it should work. I don't think you need to make anything dormant, what you have should be fine.



Just to show you I modified the script to this:

(script continuous pepzee_iz_leet
(sleep 60)
(object_create tree)
(sleep 60)
(object_destroy tree))

And got this: http://www.xfire.com/video/4dba4c/
Edited by Pepzee on Sep 16, 2011 at 01:56 AM

In case you're wondering you need to destroy the object in order to remake it.
Edited by Pepzee on Sep 16, 2011 at 02:03 AM


Xoronatus
Joined: Dec 6, 2010

Taking a break


Posted: Sep 16, 2011 02:05 AM    Msg. 3 of 3       
Oh ok, that answered my question. Thanks.

 

 
Previous Older Thread    Next newer Thread







Time: Fri January 20, 2023 2:06 PM 125 ms.
A Halo Maps Website