
ptowery
Joined: Aug 28, 2007
oify
|
Posted: Mar 18, 2011 03:44 PM
Msg. 1 of 10
This is my first script and is very, very basic but I'm not sure I did it right. I made it using a piece of a campaign script. It should play a sound looping 2 seconds after start on a single player map. and end it 50 seconds after it plays. (script playbegin (sleep 3 )(sound_looping_start "nightmare3" none 1 ) (sleep 50)(sound_looping_end "nightmare3" none 1 ))
Note: nightmare3 is a sound_looping file in tags. Also what is the script command to spawn a player without playing a cut scene in singleplayer?
|
|
|

rerout343
Joined: Aug 7, 2010
Targeted and Firing
|
Posted: Mar 18, 2011 03:57 PM
Msg. 2 of 10
If you have a script your not sure about, just try it. The worst case that could happen is that Halo crashes and you have to rewrite it and try again. But I do see one problem with your script, when using the sleep command, you specify the number of ticks not seconds. A tick is an in-game measure of time that Halo uses. I'm not 100% sure about this, but I think that 30 ticks are equal to 1 second.
About the second question, you don't need a script for that, just place a spawn point in your scenario with all of the game type boxes set to none.
Hope this helps.
|
|
|

ptowery
Joined: Aug 28, 2007
oify
|
Posted: Mar 18, 2011 04:11 PM
Msg. 3 of 10
yes, it does. But what about single player map spawning? I'm pretty sure if you don't script a spawning thing in it freezes at a camera.
Edit: Yes it does. can't spawn. also I don't think my script compiled. it's in mylevel\scripts named mylevel.hsc but when i use compile scripts and save, then reload the scenario in sapien, no scripts are listed. Edited by ptowery on Mar 18, 2011 at 04:37 PM
|
|
|

Spartan314
Joined: Aug 21, 2010
Former biped rigger & FP animator
|
Posted: Mar 18, 2011 05:43 PM
Msg. 4 of 10
did you try changing the name from mylevel.hsc to script.hsc?
|
|
|

ptowery
Joined: Aug 28, 2007
oify
|
Posted: Mar 18, 2011 06:23 PM
Msg. 5 of 10
No I didn't but it still won't compile.
It won't even show up under scripts in Guerilla.
|
|
|

ptowery
Joined: Aug 28, 2007
oify
|
Posted: Mar 18, 2011 06:53 PM
Msg. 6 of 10
in notepad in explorer in sapien in guerilla ingame
|
|
|

ptowery
Joined: Aug 28, 2007
oify
|
Posted: Mar 18, 2011 07:12 PM
Msg. 7 of 10
that would explain everything.. :D
Edit: Yep Sapien gave me script errors, which is a win to me.
Edit2: Fixed the errors! now I just have to figure out why I can't spawn. How do you spawn without adding a cutscene in Single player maps? Edited by ptowery on Mar 18, 2011 at 07:16 PM
|
|
|

jackotheblah
Joined: Jan 5, 2011
uthink ur lag is bad,takes jesus 3 days to respawn
|
Posted: Mar 18, 2011 07:21 PM
Msg. 8 of 10
you should just be able to put down a spawn point and not change any options on it, that should work
|
|
|

ptowery
Joined: Aug 28, 2007
oify
|
Posted: Mar 18, 2011 07:26 PM
Msg. 9 of 10
I always get this: I have 1 player starting points set to all games and I have 1 Starting Profile named "begin"
|
|
|

ptowery
Joined: Aug 28, 2007
oify
|
Posted: Mar 18, 2011 07:34 PM
Msg. 10 of 10
Thanks again worked flawlessly!
|
|
|