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 General Discussion »Scripting Question

Author Topic: Scripting Question (2 messages, Page 1 of 1)
Moderators: Dennis

Joshgee115
Joined: Jul 11, 2021


Posted: Jul 11, 2021 08:57 PM    Msg. 1 of 2       
Hello I am trying to script my map so that the AI will follow the player as they move between fire positions. The data file for my map doesn't show in the data folder. Can anyone send a tutorial or explain?


Piano
Joined: Jun 23, 2021


Posted: Jul 15, 2021 03:30 AM    Msg. 2 of 2       
Quote: --- Original message by: Joshgee115
Hello I am trying to script my map so that the AI will follow the player as they move between fire positions. The data file for my map doesn't show in the data folder. Can anyone send a tutorial or explain?


The data folder is where raw assets go, and then we use tool to compile them into tags, which go in the tags folder. Your map before its compiled into a .map is a .scenario tag, which is usually located under the levels folder in your tags directory.

For custom maps, we need to manually create folders in the data directory for our maps data (scripting, bitmaps, bsp).

For example, if your custom map is located in
"tags\levels\custom\custom.scenario"

then your data folders would need to be
"data\levels\custom\bitmaps\bitmap.tiff"
"data\levels\custom\models\bsp.jms"
"data\levels\custom\scripts\script.hsc"

To make AI follow you, add the command in a script. Make sure the AI exist by that point and you have their firing positions set up for following.
"ai_follow_target_players encounter_name"

If you still have trouble, make sure Halo isn't installed under the "Program Files" directory, because your data will not save.

 

 
Previous Older Thread    Next newer Thread







Time: Wed January 18, 2023 11:52 PM 94 ms.
A Halo Maps Website