DayZ Scripts
v1.21.156300 ยท Jun 20, 2023
 
Loading...
Searching...
No Matches
CylinderTrigger.c
Go to the documentation of this file.
1
3{
4 override void EOnInit(IEntity other, int extra)
5 {
7 }
8
9#ifdef DEVELOPER
10 override protected Shape DrawDebugShape(vector pos, vector min, vector max, float radius, int color)
11 {
12 float height = max[1];
13
14 Shape dbgShape = Debug.DrawCylinder(Vector(0, height * 0.5, 0), radius, height, color, ShapeFlags.TRANSP|ShapeFlags.NOZWRITE|ShapeFlags.DOUBLESIDE);
15
16 vector mat[4];
17 GetTransform( mat );
18 dbgShape.CreateMatrix( mat );
19 dbgShape.SetMatrix( mat );
20
21 dbgTargets.Insert( dbgShape );
22 return dbgShape;
23 }
24#endif
25};
void DrawDebugShape()
proto native void SetCollisionCylinder(float radius, float height)
Sets collision cylinder for object.
Trigger with cylinder shape.
override void EOnInit(IEntity other, int extra)
Definition Debug.c:14
static Shape DrawCylinder(vector pos, float radius, float height=1, int color=0x1fff7f7f, ShapeFlags flags=ShapeFlags.TRANSP|ShapeFlags.NOOUTLINE)
Definition Debug.c:322
Scripted Trigger.
Definition Hologram.c:1538
ShapeFlags
Definition EnDebug.c:126
class DiagMenu Shape
don't call destructor directly. Use Destroy() instead
proto native vector Vector(float x, float y, float z)
Vector constructor from components.