Search found 2 matches
- Tue Feb 17, 2026 6:08 pm
- Forum: Modding interface requests
- Topic: Include surface_index in on_pre_build
- Replies: 2
- Views: 128
Re: Include surface_index in on_pre_build
Thanks for the reply. I should have tried that. I just assumed it would use the surface the player character was on.
- Tue Feb 17, 2026 4:30 pm
- Forum: Modding interface requests
- Topic: Include surface_index in on_pre_build
- Replies: 2
- Views: 128
Include surface_index in on_pre_build
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.
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.