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 AMIn 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