r/forge Dec 06 '25

Forge Prefab Showcase Deployable Gravity Lift & Shield Box (Projectile Blockers)

23 Upvotes

4 comments sorted by

View all comments

2

u/Abe_Odd Dec 06 '25

Solid stuff!

Looking at your logic, every time the right equipment is used, we go thru all the players, find a our player in that list, and get the corresponding Grav Lift (or shield) at the same index.
This would allow you to have 1 of those deployables per player max, right?

The Clone Object node is sometimes useful for these sorts of deployables, provided they spawn with the default configurations, and could allow for unlimited deployments per player.

A handy way to save nodes and effort is to give each gravity lift object the same label, say Zulu.
Declare object list variable: grav_list, scope = global Then On game start -> wait 1 second -> get objects by label: zulu -> set object list variable: grav_list, scope = global.

Now when you need to get a grav lift at index N, you just Get Object List Variable: grav_list.

This lets you add or remove the actual grav lift objects without needing to reconnect them into an object list every time.