Page 1 of 1

Include surface_index in on_pre_build

Posted: Tue Feb 17, 2026 4:30 pm
by Zelaron
When a player places a blueprint, the 'on_pre_build' event contains no surface information.

We get the player_index (but player surface can differ from the blueprints) and the map position, which is not enough if we don't know the surface.

Re: Include surface_index in on_pre_build

Posted: Tue Feb 17, 2026 5:27 pm
by Rseding91
The player surface won't differ from the built blueprint. The player surface is directly used to build the blueprint.

Re: Include surface_index in on_pre_build

Posted: Tue Feb 17, 2026 6:08 pm
by Zelaron
Thanks for the reply. I should have tried that. I just assumed it would use the surface the player character was on.