Prefab Editing BuildingsWhen you edit a building, always “Save as Prefab” to the suggested category, otherwise you will create a new prefab instead of changing the old one.
Destruction StatesIn the case of buildings, destruction states are not separate prefabs but are edited within the same prefab as the building.
component Damage -> EM5 Building.
ContainedEntitiesThis slot is used by the game logic to put persons into the building. A person that is linked to this slot is in the building and will not be shown in the game.
DamageStateSet the damage state of the Building
MainDoorLink a door entity to this slot. You should use this entity: "gamelogic_entity\door_main_entrance_entity"
The door defines the position where persons entering the building will despawn and persons exiting the building will spawn. Place it in front of an actual door, so it makes sense for people to spawn / despawn there.
The line of the debug box shows the direction people who exit the building will face on spawn. Rotate the entity so that this line faces away from the building.
LightArrayLink light entities to this slot
EventWindowLink an entity to this slot to define the position where a person will stand on the balcony to be rescued by the DLK when the building is on fire. You can in theory use any entity for this, but you should use this entity:
WindowArrayIf you link particle effects to this slot, they will be played when the building transitions from DAMAGESTATE_INTACT to DAMAGESTATE_DAMAGED.
ParticlesArrayIf you link particle effects to this slot, they will be played when the building transitions from DAMAGESTATE_DAMAGED to DAMAGESTATE_DESTROYED.
417 mal gelesen