-
Notifications
You must be signed in to change notification settings - Fork 4
TE_SHOWLINE
GeckoN edited this page Jan 31, 2017
·
4 revisions
Draws a red dotted line between two points that disappears after 30 seconds. Uses fewer dots than TE_LINE.
Type | Name | Description |
---|---|---|
Vector | start | Starting point for the line |
Vector | end | End point for the line |
No API function exists as of SC 5.02
void te_showline(Vector start, Vector end, Color c=PURPLE,
NetworkMessageDest msgType=MSG_BROADCAST, edict_t@ dest=null)
{
NetworkMessage m(msgType, NetworkMessages::SVC_TEMPENTITY, dest);
m.WriteByte(TE_SHOWLINE);
m.WriteCoord(start.x);
m.WriteCoord(start.y);
m.WriteCoord(start.z);
m.WriteCoord(end.x);
m.WriteCoord(end.y);
m.WriteCoord(end.z);
m.End();
}