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