DayZ 1.28
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено
ScriptedEntity.c
См. документацию.
3 BOX,
4 SPHERE,
6}
7
8class ScriptedEntity extends EntityAI
9{
17 proto native void SetClippingInfo(vector mins, vector maxs, float radius);
18
31 proto native void SetCollisionBox(vector mins, vector maxs);
32
42 proto native void SetCollisionSphere(float radius);
43
54 proto native void SetCollisionCylinder(float radius, float height);
55
67 private proto native void SetCollisionCylinderTwoWayNative(float radius, float negativeHeight, float positiveHeight);
68
80 void SetCollisionCylinderTwoWay(float radius, float negativeHeight, float positiveHeight)
81 {
82 if (radius <=0)
83 {
84 ErrorEx("Radius has to >= 0");
85 return;
86 }
87
88 if (negativeHeight > positiveHeight)
89 {
90 ErrorEx("Negative height cannot be higher than positive height");
91 return;
92 }
93
94 SetCollisionCylinderTwoWayNative(radius, negativeHeight, positiveHeight);
95 }
96
98 proto native void SetTriggerShape(TriggerShape shape);
99
102
103 override bool IsInventoryVisible()
104 {
105 return false;
106 }
107}
class PASBroadcaster extends AdvancedCommunication IsInventoryVisible
Определения AdvancedCommunication.c:135
enum TriggerShape SetClippingInfo(vector mins, vector maxs, float radius)
Sets collision properties for object.
proto native void SetCollisionCylinder(float radius, float height)
Sets collision cylinder for object, representing cylinder from origin(center) up to defined positive ...
proto native void SetCollisionBox(vector mins, vector maxs)
Sets collision box for object.
proto native void SetCollisionSphere(float radius)
Sets collision sphere for object.
proto native void SetTriggerShape(TriggerShape shape)
Set the TriggerShape to be used, default is TriggerShape.BOX.
void SetCollisionCylinderTwoWay(float radius, float negativeHeight, float positiveHeight)
Input value validated version of SetCollisionCylinderTwoWay.
Определения ScriptedEntity.c:80
proto native void SetCollisionCylinderTwoWayNative(float radius, float negativeHeight, float positiveHeight)
Sets collision cylinder for object, representing cylinder from origin(center), height can be defined ...
proto native TriggerShape GetTriggerShape()
Get the current TriggerShape.
TriggerShape
Определения ScriptedEntity.c:2
Определения EnConvert.c:106
enum ShapeType ErrorEx
@ SPHERE
Определения EnDebug.c:119
@ CYLINDER
Определения EnDebug.c:120
@ BOX
Определения EnWorld.c:190