Map Placeable Entities
Entities can be placed through the Entity Tool, as with everything else in s&box they are automatically hotloaded within your game and Hammer.
If your game is published on s&works people can place entities for your game without even needing to download it.
Creating entities that can be placed in Hammer is as simple as marking them with
Any property in your class can be exposed to Hammer using the
Any method in your entity class can be exposed to Hammer as an input using the
[Input] attribute - parameters you define are automatically handled.
An example of an input being defined:
Any output in your entity class is automatically exposed to Hammer as an output.
An example of an output being defined:
You can fire your output using
Output.Fire(sender) like this:
All of these are optional attributes that can be added to your class to change the behavior in Hammer.
Tells Hammer this entity is brush based.
Tells Hammer this point entity can also be a brush entity, such as
Tells Hammer what model to use for the entity and is added to the class.
Tells Hammer what sprite to use for the entity and is added to the class.
Makes it so the model, skin and bodygroups can be set and changed in Hammer.
Automatically applies the supplied material to the tied brush.