TE_SHOWLINE - baso88/SC_AngelScript GitHub Wiki

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();
}