DayZ 1.29
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено
ScriptedEntity.c
См. документацию.
7
8class ScriptedEntityType : EntityAIType
9{
10};
11
13{
21 proto native void SetClippingInfo(vector mins, vector maxs, float radius);
22
35 proto native void SetCollisionBox(vector mins, vector maxs);
36
46 proto native void SetCollisionSphere(float radius);
47
58 proto native void SetCollisionCylinder(float radius, float height);
59
71 private proto native void SetCollisionCylinderTwoWayNative(float radius, float negativeHeight, float positiveHeight);
72
84 void SetCollisionCylinderTwoWay(float radius, float negativeHeight, float positiveHeight)
85 {
86 if (radius <=0)
87 {
88 ErrorEx("Radius has to be > 0");
89 return;
90 }
91
92 if (negativeHeight > positiveHeight)
93 {
94 ErrorEx("Negative height cannot be higher than positive height");
95 return;
96 }
97
98 SetCollisionCylinderTwoWayNative(radius, negativeHeight, positiveHeight);
99 }
100
102 proto native void SetTriggerShape(TriggerShape shape);
103
106
107 override bool IsInventoryVisible()
108 {
109 return false;
110 }
111}
TriggerShape
Определения ScriptedEntity.c:2
Определения EntityAIType.c:2
proto native void SetClippingInfo(vector mins, vector maxs, float radius)
Sets collision properties for object.
proto native void SetCollisionSphere(float radius)
Sets collision sphere for object.
void SetCollisionCylinderTwoWay(float radius, float negativeHeight, float positiveHeight)
Input value validated version of SetCollisionCylinderTwoWay.
Определения ScriptedEntity.c:84
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 SetTriggerShape(TriggerShape shape)
Set the TriggerShape to be used, default is TriggerShape.BOX.
proto native TriggerShape GetTriggerShape()
Get the current TriggerShape.
override bool IsInventoryVisible()
Определения ScriptedEntity.c:107
proto native void SetCollisionCylinderTwoWayNative(float radius, float negativeHeight, float positiveHeight)
Sets collision cylinder for object, representing cylinder from origin(center), height can be defined ...
Определения ScriptedEntity.c:13
Определения EnConvert.c:119
enum ShapeType ErrorEx
@ CYLINDER
Определения EnDebug.c:120
@ SPHERE
Определения EnDebug.c:119
@ BOX
Определения EnWorld.c:190