Skip to content

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.

Parameters

Type Name Description
Vector start Starting point for the line
Vector end End point for the line

API Function

No API function exists as of SC 5.02

NetworkMessage Function

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();
}
Clone this wiki locally