Dayz Explorer 1.28.160049
Loading...
Searching...
No Matches
scriptedentity.c
Go to the documentation of this file.
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
101 proto native TriggerShape GetTriggerShape();
102
103 override bool IsInventoryVisible()
104 {
105 return false;
106 }
107}
class PASBroadcaster extends AdvancedCommunication IsInventoryVisible
enum ShapeType ErrorEx
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.
BOX
proto native void SetCollisionSphere(float radius)
Sets collision sphere for object.
CYLINDER
SPHERE
TriggerShape