Scripting/Server/Functions/SetGraffiti

Moves, turns and resizes a graffiti for everybody / moves it to another virtual world.

Syntax

SetGraffiti(id, x, y, z, rx, ry, rz, width, height)
SetGraffitiWorld(id, world)

Arguments

Returns

bool

Example

function onPlayerCommand( player, cmd, params )
{
	if ( cmd == "setgraffiti" )
	{
		local pos = player.Pos;
		local result = SetGraffiti( 0, pos.x, pos.y, pos.z, 0.0, 0.0, 0.0, 100, 100 );
		MessagePlayer( "SetGraffiti returned: " + result, player );
	}
}

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

Section: Graffiti (v0.5-beta, PC only)

Categories: Server functions | Graffiti (v0.5-beta, PC only)