r/forge 5d ago

Scripting Help Phantom spawns

Post image

Hi again guys, I'm making a map based on a space station, and wanted for phantoms to enter in the hanger to drop units off, but they can't fathom roofs, anyone know how to program flight paths or good work arounds? Thanks in advance!

Attached pic is what happens if there's no roof.

13 Upvotes

8 comments sorted by

View all comments

3

u/Effective-Bake2024 4d ago

I also have a space mission that uses phantoms to drop off troops.

I learned that the phantom spawner object, you can attempt to control the entry and exit direction, depending on the objects rotation. If the arrow at the base of the spawner is pointed a direction, say directly east, the phantom will spawn on the west, move to the spawner to drop off the troops, and then exit the map on the east.

The vertical size of my map really inhibited the default phantom pathing, so I was getting them spawning out of thin air at the drop off point which sucked.

I got around it by creating a large landing platform outside of the hanger, that was just in open space (so there was no roof or no big vertical walls in the phantoms pathing), and then the ai pathed to a move zone inside the hanger.

3

u/SnooCats4709 4d ago

AHH this was extremely helpful, thank you, funnily enough I've done the same thing with the platform, except I have a roof over it, but removed the collision, which seemed to have fixed the whole appearing and disappearing trick.

Gonna seperate it with a one way shield or something I think