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 »Script not working

Author Topic: Script not working (6 messages, Page 1 of 1)
Moderators: Dennis

Bokito
Joined: Oct 31, 2007

Playing ODST since 09-21-09


Posted: Dec 24, 2007 04:35 PM    Msg. 1 of 6       
i made a script, put it in the data\levels\mapname\scripts folder, saved it as scripts.hsc, compiled it in sapien, but it isnt working! What did i do wrong? Heres the script:
(script startup vehiclespawn
(object_create_anew pelican1)
(object_create_anew kestrel1)
(object_create_anew phantom1)
(object_create_anew heretic_banshee1)
(object_create_anew yghost1)
(object_create_anew yghost2)
(object_create_anew yghost3)
(object_create_anew yghost4)
(object_create_anew yghost5)
)


Somone77
Joined: Aug 25, 2007


Posted: Dec 24, 2007 04:59 PM    Msg. 2 of 6       
i think you need to put (begin after (script startup vehiclespawn like this:

(script startup vehiclespawn
(begin
and so on


adumbass
Joined: Nov 22, 2006


Posted: Dec 24, 2007 05:38 PM    Msg. 3 of 6       
What exactly do you mean it isn't working is it not compiling or working in game?


Bokito
Joined: Oct 31, 2007

Playing ODST since 09-21-09


Posted: Dec 25, 2007 05:07 AM    Msg. 4 of 6       
it isnt working ingame


kirby_422
Joined: Jan 22, 2006

Apparently public enemy number 1?


Posted: Dec 27, 2007 06:28 PM    Msg. 5 of 6       
Quote: --- Original message by: Bokito
i made a script, put it in the data\levels\mapname\scripts folder, saved it as scripts.hsc, compiled it in sapien, but it isnt working! What did i do wrong? Heres the script:
(script startup vehiclespawn
(object_create_anew pelican1)
(object_create_anew kestrel1)
(object_create_anew phantom1)
(object_create_anew heretic_banshee1)
(object_create_anew yghost1)
(object_create_anew yghost2)
(object_create_anew yghost3)
(object_create_anew yghost4)
(object_create_anew yghost5)
)

(script startup spawn
(object_create_anew_containing 1)
(object_create_anew_containing yghost)
)
that will spawn the stuff like pelican1 since htey have 1 in the name, and the yghosts because they have yghost in their name. its a much more efficent use of space lol.

Quote: --- Original message by: cheater101
i think you need to put (begin after (script startup vehiclespawn like this:

(script startup vehiclespawn
(begin
and so on

No, begin is a no-no, its a waste of space, and makes the script run 1/30th of a second slower (yes, its horible lol)
Quote: --- Original message by: selentic
Ask kirby when he comes on.

it must not realy be compiling

Example:
tags\levels\test\bloodgulch\bloodgulch.scenario
data\levels\test\bloodgulch\scripts\SCRIPT.hsc


bobbysoon
Joined: Feb 1, 2007


Posted: Dec 28, 2007 07:48 AM    Msg. 6 of 6       
look at the bottom of the scenario tag to confirm the scripts have compiled. If not, double check your script location

 

 
Previous Older Thread    Next newer Thread







Time: Sat January 21, 2023 2:40 AM 109 ms.
A Halo Maps Website