Quote: --- Original message by: Spartan314A quick google search gave me this:
http://forum.halomaps.org/index.cfm%3Fpage=topic&topicID=19829 Quote: --- Original message by: kai5888
for scripting in more than 6 vehicle types.... i think... you must name all the vehicles in saphien then in the script put:
(script startup vehicles
(object_create_anew <vehicle name>)
)
and you do that for every vehicle... (that is not one of the types in globals...)
eventually it will look like this:
example:
(script startup vehicles
(object_create_anew mw1)
(object_create_anew mw2)
(object_create_anew mw3)
(object_create_anew mw4)
(object_create_anew mw5)
(object_create_anew ls1)
(object_create_anew ls2)
(object_create_anew s1)
(object_create_anew j1)
(object_create_anew j2)
)
save that as a .hsc file and make a new folder called scripts in C://program files/microsoft games/halo custom edition/data/levels/mapname
then put the script in the script folder you just made... then go back in saphien and "file" "compile scripts"C
Basically add the vehicle type as you would normally with Sapien.
Then add the vehicle into your map.
Name each of your vehicles a name. (e.g. warthog1, warthog2, ghost1, etc.)
Open up notepad as administrator.
Copy paste this script:
(script startup vehicles
(object_create_anew <vehicle name>)
)
and replace <vehicle name> with each of the names you gave your own vehicles.
Using the example:
(script startup vehicles
(object_create_anew warthog1)
(object_create_anew warthog2)
(object_create_anew ghost1)
)
Save it as your map name or just script but make sure it has the .hsc at the end. (e.g. script.hsc)
Put this file in: C:\Program Files\Microsoft Games\Halo Custom Edition\data\levels\*your map name here*\scripts, make a new scripts folder if you have to
Go back into Sapien and compile your script.
If it works, save the .scenario and compile your map to see if it worked.
E: It's been over a year since I've done this so don't be afraid to shout out if it doesn't work.
Edited by Spartan314 on Dec 10, 2016 at 05:04 AM Thank you very much for replying, I tried to do what you told me but when I tried to add the script, sapien tells me that the script was added successfully, when in reality I would have to say that scripts were added, or so I understand. The point is that the vehicles still do not appear and I think it is for this detail with the scripts, I would like to know how to solve this inconvenience.