Dayz
Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
Toggle main menu visibility
Loading...
Searching...
No Matches
scriptedentity.c
Go to the documentation of this file.
1
enum
TriggerShape
2
{
3
BOX
,
4
SPHERE
,
5
CYLINDER
,
6
}
7
8
class
ScriptedEntityType :
EntityAIType
9
{
10
};
11
12
class
ScriptedEntity
:
EntityAI
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
}
EntityAI
Definition
inventoryitem.c:2
EntityAIType
Definition
entityaitype.c:2
ScriptedEntity
Definition
scriptedentity.c:13
ScriptedEntity::IsInventoryVisible
override bool IsInventoryVisible()
Definition
scriptedentity.c:107
ScriptedEntity::SetCollisionCylinder
proto native void SetCollisionCylinder(float radius, float height)
Sets collision cylinder for object, representing cylinder from origin(center) up to defined positive ...
ScriptedEntity::SetCollisionBox
proto native void SetCollisionBox(vector mins, vector maxs)
Sets collision box for object.
ScriptedEntity::SetCollisionSphere
proto native void SetCollisionSphere(float radius)
Sets collision sphere for object.
ScriptedEntity::SetTriggerShape
proto native void SetTriggerShape(TriggerShape shape)
Set the TriggerShape to be used, default is TriggerShape.BOX.
ScriptedEntity::SetCollisionCylinderTwoWay
void SetCollisionCylinderTwoWay(float radius, float negativeHeight, float positiveHeight)
Input value validated version of SetCollisionCylinderTwoWay.
Definition
scriptedentity.c:84
ScriptedEntity::SetClippingInfo
proto native void SetClippingInfo(vector mins, vector maxs, float radius)
Sets collision properties for object.
ScriptedEntity::SetCollisionCylinderTwoWayNative
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::GetTriggerShape
proto native TriggerShape GetTriggerShape()
Get the current TriggerShape.
vector
Definition
enconvert.c:119
ErrorEx
enum ShapeType ErrorEx
CYLINDER
@ CYLINDER
Definition
endebug.c:120
SPHERE
@ SPHERE
Definition
endebug.c:119
BOX
@ BOX
Definition
enworld.c:190
TriggerShape
TriggerShape
Definition
scriptedentity.c:2
Games
Dayz
scripts
3_game
entities
scriptedentity.c
Generated by
1.17.0