Scripting/Squirrel/Functions/DestroyMarker
This wiki is using an old backup from 2020
Some information may be old/missing
This function will destroy a created Marker.
Syntax
DestroyMarker(MarkerName)
Arguments
- string MarkerName - The name of the created Marker.
Example
function onPlayerCommand( player, cmd, text )
{
if ( cmd == "createmarker" )
{
Marker<-CreateMarker(player.UniqueWorld, Vector( 498.03,-83.8962,9.74025 ), 5,RGB(209, 209, 209),0);
}
if ( cmd == "deletemarker" )
{
DestroyMarker(Marker);
}
return 1;
}