-
Notifications
You must be signed in to change notification settings - Fork 4
TE_BOX
GeckoN edited this page Jan 31, 2017
·
4 revisions
Draws an axis-aligned box made up of dotted lines.
Type | Name | Description |
---|---|---|
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) |
Color | c | Line color |
No API function exists as of SC 5.02
void te_box(Vector mins, Vector maxs, uint16 life=16, Color c=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();
}