Scripting/Server/Functions/EditGraffiti

Opens the 3D editor for that player (the same gizmo as EditObject: 1 moves, 2 rotates, 3 scales, Enter saves, Esc cancels). The result arrives in onPlayerEditGraffiti (section 3.8).

Syntax

EditGraffiti(player, id)

Arguments

Returns

bool (false when the player or the graffiti does not exist)

Example

function onPlayerCommand( player, cmd, params )
{
	if ( cmd == "editgraffiti" )
	{
		local result = EditGraffiti( player, 0 );
		MessagePlayer( "EditGraffiti 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)