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 CE Maps (Bungie/Gearbox) »Halo CE Technical / Map Design »help please? :D

Author Topic: help please? :D (6 messages, Page 1 of 1)
Moderators: Dennis

thehonorguard
Joined: Aug 26, 2012

I suck at this.


Posted: Aug 31, 2012 06:33 AM          Msg. 1 of 6
hey guys, i need some help scripting, but before i tart, why wont i spawn on my single player map when i try to test triggers? i have player spawn points so idk... anyways i need to know how to make ai spawn when you cross over a trigger, i also need the script, i mean i can make the script myself i just dont know what to write... and what do i name the trigger etc, i mean i need details ima noob lol ive been helped before but the advice didnt work... i also need to know how to get ai to spawn and enter and drive a vehicle, same as on top i need the script and what to name the trigger and flag etc. i also want to know how to make nav points thanks for the help in advance :D


sargejohnson
Joined: Apr 20, 2009


Posted: Aug 31, 2012 07:25 AM          Msg. 2 of 6
By trigger I am assuming you meant trigger volume, so I will go with that.


(script startup scriptname
<script commands here>
)


Most scripts will look similar to the example above, where "startup" refers to how you want the script to run (there are a few types: startup, continuous etc.), and "scriptname", of course, refers to the name of the script, which can be anything as long as you refer to them with this name properly in other scripts. And to answer your question, trigger volumes and flags can be named just about anything as long as you reference them in your script and they are big enough to detect the object you want them to detect.


Quote: i need to know how to make ai spawn when you cross over a trigger

Basically, create a trigger volume that detects if the player is in it, then spawns an AI encounter.
For example, if your AI encounter is called "bravo", you want the script to run continuously, your trigger volume is called "ai_spawner", and you want to call the script "spawn_aiz", you compile this script:


(script continuous spawn_aiz
(if
(volume_test_object "ai_spawner" (players))
(ai_place bravo)
)
)



Quote: i also need to know how to get ai to spawn and enter and drive a vehicle

Spawn the AI encounter, then get the specific squad of the AI encounter to enter a vehicle.
If your AI encounter is "sierra", the squad your driver is in is called "driver_squad" and it is part of the "sierra" encounter, your vehicle is a banshee with object name "this_random_shee" and its seat name is called "b-driver", you want the script to run on startup and you want to call your script "i_like_drivers", you compile this script:


(script startup i_like_drivers
(ai_place (ai_actors sierra/driver_squad))
(vehicle_load_magic this_random_shee "b-driver" (ai_actors sierra/driver_squad))
)



To sum it up, scripting is pretty much a mix and mashing of commands, you just need to find the right ones and place them logically in your script. If you need more script commands and flags, just download the Halo Scripting Bible (http://hce.halomaps.org/index.cfm?fid=2809) and play with the commands present there. If necessary, use the Halo Scripter tool (http://hce.halomaps.org/index.cfm?fid=2831) here to make your script.
Edited by sargejohnson on Aug 31, 2012 at 07:26 AM


thehonorguard
Joined: Aug 26, 2012

I suck at this.


Posted: Aug 31, 2012 07:10 PM          Msg. 3 of 6
hey buddy thanks so much for the assist, but do you have any idea why im not spawning?


sargejohnson
Joined: Apr 20, 2009


Posted: Sep 1, 2012 12:11 AM          Msg. 4 of 6
EDIT: Ignore this, and next time have a single thread for your problems.
Edited by sargejohnson on Sep 1, 2012 at 12:12 AM


thehonorguard
Joined: Aug 26, 2012

I suck at this.


Posted: Sep 1, 2012 12:15 AM          Msg. 5 of 6
ok sorry im new so i dont want to spam but i has lots of questions...


nihao123456ftw
Joined: Mar 24, 2012


Posted: Sep 3, 2012 07:49 PM          Msg. 6 of 6
Quote: --- Original message by: thehonorguard
why wont i spawn on my single player map when i try to test triggers? i have player spawn points so idk...


Set gametypes to "none" not "all games." That's for multiplayer maps only

 

 
Previous Older Thread    Next newer Thread





Time: Sun May 19, 2013 4:13 PM 438 ms.
A Halo Maps Website