Overview

Door entities are used to create different types of doors. The door entities can be found in Rollup Bar -> Entity -> Doors.

Advanced Door

The Advanced Door entity has additional properties that allows the door to receive damage and be destroyed appropriately. These are mostly controlled in the Breakage, Destruction and Vulnerability property tables.

The model required for an Advanced door to work fully is much the same as a destructible object, with the entity looking for specific sub-object names within the model file to use as normal and destroyed models of the door as well as any pieces that should be generated.

The door opens and closes based on simple rotation angles around the Z-axis, but as it is an advanced door, it will also physically interact with geometry and objects whilst opening and closing so it's possible to have entities blocking the path of the door.

Properties

Description

Locked

Is the door locked or not.

DestroyedSubObject

Will the sub object part of the door remain.

Health

Defines the health of the door.

Mass

Defines the mass of the door.

Model

Specifies the model of the door.

ModelDestroyed

Specifies the model of the door once it is destroyed.

ModelSubObject

Specifies the model of the sub-object of the door.

SmartObjectClass

See Common Entity Parameters.

UsePortal

Specifies if the door uses portals or not.

Breakage

 

ExplodeImpulse

Specifies the push back of the explosion should the door explode.

LifeTime

Specifies the lifetime of the object after it has been destroyed.

SurfaceEffects

Specifies if surface effects will be used when the object is destroyed.

Destruction

 

Damage

Specifies how much damage the object does when it explodes.

Decal

Specifies the decal to use when the object is destroyed.

EffectScale

Specifies the scale of the effect.

Explode

Creates an explosion effect that can kill people.

ParticleEffect

Specifies an destruction effect.

Pressure

How much pressure does the object place on surrounding objects when it is destroyed.

Radius

Specifies the radius of the explosion.

Direction

Specifies the direction of the explosion in X/Y/Z coordinates.

Limits

 

AutoCloseTime

Specifies how long the door will take to close automatically after been opened. Set to 0 to turn this feature off.

Damping

Specifies the damping on the door when it closes (how much it slows down when moving).

InitialAngle

Specifies the angle at which the door is initially set up.

IsBreachable

Specifies if the door can be breached.

MaxBend

Specifies how far the maximum that the door will bend.

MaxForce

Specifies how much force can be applied.

OpenFromBack

Specifies if the door opens from the back.

OpenFromFront

Specifies if the door opens from the front.

OpeningRange

Specifies how far the door opens.

Speed

Specifies how fast the door opens.

UseDistance

Specifies how far away the door can be used from.

Sound

 

CloseSound

Specifies the sound used when the door is closed.

LockedSound

Specifies the sound used when the door is locked.

OpenSound

Specifies the sound used when the door is opened.

Vulnerability

 

Bullet

Specifies if the door can be damaged by bullets.

Collision

Does the door have collision.

DamageTreshold

Specifies the damage required to open the door.

Explosion

Specifies if the door can be damaged by explosions.

Melee

Specifies if the door can be damaged by melee attacks.

Other

Specifies if "other" damage can damage the door.

Anim Door

The Anim Door entity is another door entity available in the engine, the advantage of this entity is that you can use animations to control how the door opens and closes.

The Physics properties table also allows the Door to have physical properties though unlike the Advanced Door the Anim Door entity cannot be destroyed.

If you do not require the Door to interact physically with the world it is best to set the PhysicalizePushableByPlayers and RigidBody flags to false as this will save on performance.

Properties

Description

Activate Portal

Specifies if the door activates a portal.

Locked

Specifies if the door is locked.

Model

Specifies which model the door will use.

NoFriendlyFire

Specifies if friendly fire affects the door.

SmartObjectClass

See Common Entity Parameters.

UseDistance

Specifies how far away the door can be used from.

Animation

 

anim_Close

Specifies the animation to use when the door is closed.

anim_Open

Specifies the animation to use when the door is opened.

Physics

 

Density

Specifies the density of the door.

Mass

Specifies the mass of the door.

Physicalize

Specifies if the door is physicalized.

PushableByPlayers

Specifies if the door can be pushed by players or not.

RigidBody

Specifies if the door should use rigid body physics.

Sounds

 

Close

Specifies the close sound.

Open

Specifies the open sound.

Door

This is the simplest door entity available but still affords quite a large amount of control over the behavior of the door.

It is possible to use the Rotation or Slide parameters to control how the door opens and closes, for instance by changing the Axis parameter it's possible to create a door that rotates on the X or Y Axis.

This entity does not have any physical interaction.

Properties

Description

Activate Portal

Specifies if the door activates a portal.

Locked

Specifies if the door is locked.

Model

Specifies which model the door will use.

SmartObjectClass

See Common Entity Parameters.

SquashPlayers

Specifies if the door can squash and damage/kill the player.

Usable

See Common Entity Parameters.

UseDistance

Specifies how far away the door can be used from.

UseMessage

See Common Entity Parameters.

Rotation

 

Acceleration

Specifies how fast the door will accelerate.

Axis

Specifies about which axis the door will rotate.

FrontAxis

Specifies the front axis of the door.

Range

Specifies how far the door will rotate.

RelativeToUser

Specifies if the door rotates in relation to the user.

Speed

Specifies the rotation speed of the door.

StopTime

Specifies how long the door takes to stop.

Slide

 

Acceleration

Specifies how much the door accelerates when its sliding.

Axis

Specifies the axis in which the door slides.

Range

Specifies how far the door will slide.

Speed

Specifies how fast the door slides.

StopTime

Specifies how long the door takes to stop.

Sounds

 

Range

Specifies how far the sound of the door can be heard from.

SoundOnMove

Specifies the sound to use when the door moves.

SoundOnStop

Specifies the sound to use when the door stops.

SoundOnStopClosed

Specifies the sound to use when the door stops closed.

Volume

Specifies the volume of the sound used.

门实体

门实体用于创建不同类型的门。门实体可以在*Rollup 栏 -> 实体 -> 门中找到*。

 

高级门

高级门实体有附加属性,允许门受到适当的损坏和毁坏。这些大部分在“破坏”、“毁坏”和“脆弱性”等属性表中控制。需要高级门完全工作的模块和可破坏对象一样,带有在模块文件中寻找指定子对象名称的实体以作为正常和毁坏的门模块,以及任何应当生成的碎片。门打开或关闭都仅基于围绕 Z 轴旋转的角度,但因为它是高级门,当打开或关闭时也可与几何体和对象发生物理性交互作用,所以实体可以阻塞门的路径。由于它所拥有的这些附加功能,使其成为最昂贵的门实体。

常规属性 
已锁上门是否已锁上。
破坏的子对象门的子对象部分是否仍存在。
生命值定义门的生命值。
质量定义门的质量。
模块指定门的模块。
破坏模块指定曾经被破坏的门的模块。
模块子对象指定门的子对象的模块。
智能对象类别指定门的智能对象类别。
使用门户指定门是否使用门户。
破坏 
爆炸冲量指定门爆炸时,其产生的反弹力。
生命期在对象受到破坏后,指定其生命期。
表面特效指定当对象被破坏时,所使用到的表面效应。
毁坏 
损坏指定对象爆炸时受到的损坏程度。
贴花指定当对象爆炸时所用的贴花。
特效指定破坏产生的特效。
特效缩放指定特效的缩放。
爆炸创建可以杀人的爆炸特效。
压力当对象被破坏时,它给周围对象所施的压力。
半径指定爆炸的半径。
方向按照 X、Y、Z 轴指定爆炸的方向。
限制 
自动关闭时间指定门在打开之后再自动关闭所用的时间。设置值为 0 可以关闭此功能。
阻尼指定门关闭时所受到的阻尼。(门移动时慢下来的程度)。
初始角度指定门初始设置的角度。
IsBreachable指定门是否可以被破坏。
最大弯曲度指定门弯曲的最大程度。
最大力指定可以施加的最大力。
从后打开指定门是否从后面打开。
从前打开指定门是否从前面打开。
打开范围指定门打开的距离。
速度指定门打开的速度。
使用距离指定门可以使用的距离。
声音 
关闭声音指定门关闭时的声音。
上锁声音指定门被锁上时的声音。
打开声音指定门在打开时的声音。
脆弱性 
子弹指定门是否可以被子弹所伤害。
碰撞门是否有碰撞。
DamageTreshold指定需打开门的损坏。
爆炸指定门是否被爆炸所损坏。
近战攻击指定门是否可以被近战攻击所损坏。
其他指定门是否可以被“其他”破坏所损坏。

动画门

动画门实体是引擎中可用的门实体。这种实体的优势是您可以用动画来控制门的打开和关闭。尽管和高级门不同,动画门不可以被破坏,物理属性表也可使其拥有物理属性。如果您不要求门与世界发生物理交互作用,那么最好设置*物理化*、*玩家可推*和*刚体*标志为假,以节省性能。

常规属性 
激活门户指定门是否激活门户。
已锁上指定门是否已锁上
模块指定门将使用的模块。
无误伤指定门是否会受到误伤的影响。
智能对象类别指定对象的智能对象类别。
使用距离指定门可以使用的距离。
动画 
动画_关闭指定当门关闭时使用动画。
动画_打开指定门在打开时使用动画。
物理 
密度指定门的密度。
质量指定门的质量。
物理化指定门是否物理化。
玩家可推指定门是否可以被玩家推。
刚体指定门是否使用物理刚体。
声音 
关闭指定关闭的声音。
打开指定门打开的声音。

这是可用的最简单的门实体,但仍对门的运行提供了大量控制力。可以使用旋转或斜率参数来控制门的开与关,例如:通过改变轴参数可以使门在 X 或 Y 轴旋转。尽管该实体没有任何物理交互作用。

常规参数 
激活门户指定门是否激活门户。
已锁上指定门是否已锁上。
模块指定门将要使用的模块。
智能对象类别指定对象的智能对象类别。
挤压玩家指定门是否会挤压和伤害/杀死玩家。
使用距离指定门可以使用的距离。
旋转 
加速度指定门的加速度。
指定门旋转的轴。
前轴指定门的前轴。
范围指定门旋转的范围。
用户相关指定门的旋转是否与用户相关。
速度指定门旋转的速度。
停止时间指定门停止所用的时间。
滑动 
加速度指定门滑动时的加速度。
指定门滑动的轴。
范围指定门滑动的距离。
速度指定门滑动的速度。
停止时间指定门停止所用的时间。
声音 
范围指定门声可以被听到的范围。
移动声音指定门移动时所用的声音。
停止声音指定门停止时所用的声音。
停止关闭声音指定门停止关闭时所用的声音。
音量指定声音所用的音量