Dayz Explorer  1.24.157551 (v105080)
Dayz Code Explorer by Zeroy
cylindertrigger.c
Go to the documentation of this file.
3 {
4  override void EOnInit(IEntity other, int extra)
5  {
6  SetCollisionCylinder(1, 0.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 };
DrawDebugShape
void DrawDebugShape()
Definition: bleedingsource.c:171
SetCollisionCylinder
proto native void SetCollisionCylinder(float radius, float height)
Sets collision cylinder for object.
IEntity
Definition: enentity.c:164
vector
Definition: enconvert.c:105
Trigger
Scripted Trigger.
Definition: hologram.c:1573
CylinderTrigger
Trigger with cylinder shape.
Definition: cylindertrigger.c:2
ShapeFlags
ShapeFlags
Definition: endebug.c:125
Debug
Definition: debug.c:13
Vector
proto native vector Vector(float x, float y, float z)
Vector constructor from components.
Shape
class DiagMenu Shape
don't call destructor directly. Use Destroy() instead