Dayz Explorer 1.29.162510
Loading...
Searching...
No Matches
scriptedentity.c
Go to the documentation of this file.
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
105 proto native TriggerShape GetTriggerShape();
106
107 override bool IsInventoryVisible()
108 {
109 return false;
110 }
111}
class PASBroadcaster extends AdvancedCommunication IsInventoryVisible
enum ShapeType ErrorEx
@ CYLINDER
Definition endebug.c:120
@ SPHERE
Definition endebug.c:119
@ BOX
Definition enworld.c:190
TriggerShape