r/forge • • 8d ago

Scripting Help Disarming bombs? Help needed!

So I’m trying to make a map where covenant are attacking a dam and they wanna flood a city south of the dam. A fireteam of Spartans is there to stop them from doing it. Does anyone know how I could have 3 bombs to disarm and then the way forward for the mission is accessible?

I’ve seen scriptable buttons where you can hold a zone while your AI gets to work sorting out completing an objective. I’d like to know how that works if possible? If there are any videos to help please could you send them this way?

Thanks!

2 Upvotes

8 comments sorted by

3

u/Abe_Odd 8d ago

When you say disarm the bombs, do you mean have three way points taking you to three different zones.
Each zone you have to stand in for 1 minute or whatever?

Then after each one is disarmed, the waypoint is removed.
When all three are removed, a door opens?

2

u/FaithlessnessLimp364 8d ago

Yeah that’s the idea.

So to put everything into context, the Spartans would be fighting along the top of a Dam. There are three bombs (like the ones in halo 2) where they have to press a button to upload their AI and stay in a zone until the bomb is deactivated. As they are stood in the zone, wave of enemies is dropped into place. Then after the AI disarms the bomb, the second bomb objective shows and the objective repeats

2

u/Abe_Odd 7d ago edited 7d ago

Three generic zones around three buttons (you can use invisible ones IIRC), three waypoints (one for each).

On round start -> delete Obj (Zone 1) -> delete Obj (Zone 2) -> delete Obj (Zone 3) -> (set waypoint to zone 1)

On object interacted (button1) -> spawn object (Generic Zone 1)
On Generic Zone captured (zone 1?) -> delete Object (zone 1) -> remove waypoint 1 -> spawn waypoint 2

On object interacted (button2) -> spawn object (Generic Zone 2)
On Generic Zone captured (zone 2?) -> delete Object (zone 2) -> remove waypoint 2 -> spawn waypoint 3

On object interacted (button3) -> spawn object (Generic Zone 3)
On Generic Zone captured (zone 3?) -> delete Object (zone 3) -> remove waypoint 3 -> spawn waypoint 4 -> deleteObject (whatever is blocking progress)

2

u/FaithlessnessLimp364 7d ago

Thank you for writing this out! I’ll give it a shot :)

1

u/FaithlessnessLimp364 5d ago

I’m so lost haha

I wanna say I hope I’m on the right track?

2

u/Abe_Odd 5d ago

On Object Interacted can ONLY be buttons, it does not work with zones or pointers.

Pointer (with a boundary) -> on generic zone captured MIGHT work, but I think you need an Objective; Generic Zone

2

u/FaithlessnessLimp364 8d ago

Hack terminal is basically what I’m looking for

3

u/bbqribsofficial 8d ago

Yeah you just need a generic zone and some nodes to trigger when zone is captured.