TE BOX
Revision as of 19:08, 7 July 2025 by Outerbeast (talk | contribs) (Created page with "frame|TE_BOX Draws an axis-aligned box made up of dotted lines. <pre> void te_box(Vector mins, Vector maxs, uint16 life=16, RGBA c=RGBA_PURPLE, NetworkMes...")
Draws an axis-aligned box made up of dotted lines.
void te_box(Vector mins, Vector maxs, uint16 life=16, RGBA c=RGBA_PURPLE,
NetworkMessageDest msgType=MSG_BROADCAST, edict_t@ dest=null)
{
NetworkMessage m(msgType, NetworkMessages::SVC_TEMPENTITY, dest);
m.WriteByte(TE_BOX);
m.WriteCoord(mins.x);
m.WriteCoord(mins.y);
m.WriteCoord(mins.z);
m.WriteCoord(maxs.x);
m.WriteCoord(maxs.y);
m.WriteCoord(maxs.z);
m.WriteShort(life);
m.WriteByte(c.r);
m.WriteByte(c.g);
m.WriteByte(c.b);
m.End();
}
- Vector mins Bottom-left-back corner of the box
- Vector maxs Top-right-front corner of the box
- uint16 life Time to display the box (seconds * 0.1)
- RGBA c Line color
