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
- int id
- float x
- float y
- float z
- float rx
- float ry
- float rz
- float width
- float height
- int world
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.
Related pages
Section: Graffiti (v0.5-beta, PC only)
Categories: Server functions | Graffiti (v0.5-beta, PC only)