Dayz Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
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
106
107 override bool IsInventoryVisible()
108 {
109 return false;
110 }
111}
override bool IsInventoryVisible()
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.
proto native void SetClippingInfo(vector mins, vector maxs, float radius)
Sets collision properties for object.
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.
enum ShapeType ErrorEx
@ CYLINDER
Definition endebug.c:120
@ SPHERE
Definition endebug.c:119
@ BOX
Definition enworld.c:190
TriggerShape