Scripting/Client/Functions/Draw3DSprite

Same for an image downloaded with <sprite>. Max 512 per frame.

Syntax

Draw3DSprite(file, x, y, z [, distance [, scaleX [, scaleY]]])
Draw3DSprite(file, Vector [, distance [, scaleX [, scaleY]]])

Arguments

Returns

bool

Example

function onScriptLoad()
{
	local pos = player.Pos;
	local result = Draw3DSprite( "example.png", pos.x, pos.y, pos.z );
	MessagePlayer( "Draw3DSprite returned: " + result, player );
}

This sample was generated from the signature – adapt the values to your gamemode.

Section: Screen, world and camera

Categories: Client functions | Screen, world and camera