DayZ
1.24
Loading...
Searching...
No Matches
SphereTrigger.c
Go to the documentation of this file.
1
2
class
SphereTrigger
:
Trigger
3
{
4
override
void
EOnInit
(
IEntity
other
,
int
extra
)
5
{
6
SetCollisionSphere
(3);
7
}
8
9
#ifdef DEVELOPER
10
override
protected
Shape
DrawDebugShape
(
vector
pos,
vector
min
,
vector
max
,
float
radius,
int
color
)
11
{
12
Shape
dbgShape
=
Debug
.
DrawSphere
(pos, radius,
color
,
ShapeFlags
.TRANSP |
ShapeFlags
.NOZWRITE |
ShapeFlags
.NOOUTLINE |
ShapeFlags
.DOUBLESIDE);
13
dbgTargets
.Insert(
dbgShape
);
14
return
dbgShape
;
15
}
16
#endif
17
};
DrawDebugShape
void DrawDebugShape()
Definition
BleedingSource.c:169
SetCollisionSphere
proto native void SetCollisionSphere(float radius)
Sets collision sphere for object.
Debug
Definition
Debug.c:14
Debug::DrawSphere
static Shape DrawSphere(vector pos, float size=1, int color=0x1fff7f7f, ShapeFlags flags=ShapeFlags.TRANSP|ShapeFlags.NOOUTLINE)
Definition
Debug.c:434
IEntity
Definition
EnEntity.c:164
Param3
Definition
EntityAI.c:95
SphereTrigger
Trigger with spherical shape.
Definition
SphereTrigger.c:3
SphereTrigger::EOnInit
override void EOnInit(IEntity other, int extra)
Definition
SphereTrigger.c:4
Trigger
Scripted Trigger.
Definition
Hologram.c:1518
vector
Definition
EnConvert.c:106
ShapeFlags
ShapeFlags
Definition
EnDebug.c:126
Shape
class DiagMenu Shape
don't call destructor directly. Use Destroy() instead
scripts
4_World
Entities
ScriptedEntities
Triggers
SphereTrigger.c
Generated by
1.10.0