sbox-issues icon indicating copy to clipboard operation
sbox-issues copied to clipboard

Custom hammer placables

Open osmanlodzero opened this issue 1 year ago • 5 comments

For?

S&Box, Hammer

What can't you do?

I want to place certain gameobjects/components/entities/whatever that I've created/defined in my hammer maps. Example would be checkpoints in a racing game, camera hint locations in a resident evil type game, pick-up locations, teleporters etc etc.

Currently I have to place these in a scene, which forces me to have a scene for each map that I'm making and doing 'double' work. It also prevents anyone outside of my 'team' to make maps since they would need access to the project? It would be great if anyone could just upload a map and it would work in my game.

How would you like it to work?

Not sure, but the end result ideally is that I can place prefabs that I've created in my project into the map and change it's properties in the inspector just like I can in the scene.

What have you tried?

I have tried placing note entities and trying to read the contents but failed to do so.

Additional context

if this feature is planned but far away, even a generic object that is placable and can store some kind of data that can be read in-game would be a life-safer.

osmanlodzero avatar Jan 26 '24 16:01 osmanlodzero

well, this was exactly how it worked before the scene system, really hoping for the same thing working again

MrBrax avatar Jan 26 '24 18:01 MrBrax

I need this in my life

badandbest avatar Jan 26 '24 21:01 badandbest

The end goal is placing prefabs.

I think we can have a stopgap where you can place empty GameObjects and assign name and tags.

garrynewman avatar Jan 28 '24 10:01 garrynewman

Sounds good, it's currently my only real blocker from having a fully playable game of some kind. Just need start/finish locations from a hammer map 👍🏽

osmanlodzero avatar Jan 28 '24 10:01 osmanlodzero

prefabs in general would need to have some kind of exposed variable list to configure them

MrBrax avatar Jan 28 '24 11:01 MrBrax