Skip to main content
KevinJardine
Honored Contributor
June 21, 2025
Solved

Sublevel issue

I have an asset pool in a sublevel that adds a button that brings up a CustomUI form that returns the user to a home spawn point. When I test the sublevel, all works as expected. However, when I load it from my toplevel, I get "Found an object with an invalid reference on variable 'spawnPoint'". Any suggestions?

SeeingBlue
Honored Contributor
June 23, 2025

You shouldn't be trying to use dynamics in a sublevel. It only works with static entities.

Upcoming Events : Performance Pro - UI Unleashed - Building Responsive & Performant Interfaces Thursday June 19th 5:00 PM PT - Register June Programming Calendar

3 replies

KevinJardine
Honored Contributor
June 21, 2025

I am attaching the spawn point to the Custom UI which is then replicated for every user.

SeeingBlue
Honored Contributor
June 23, 2025

You shouldn't be trying to use dynamics in a sublevel. It only works with static entities.

Upcoming Events : Performance Pro - UI Unleashed - Building Responsive & Performant Interfaces Thursday June 19th 5:00 PM PT - Register June Programming Calendar
KevinJardine
Honored Contributor
June 23, 2025

Thanks. I have a top level local form set up per player and I realized that with a bit of code I could use that for every player form, even in the sublevels.