Scripting/Squirrel/Functions/DestroyMarker: Difference between revisions
Jump to navigation
Jump to search
This wiki is using an old backup from 2020
Some information may be old/missing
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
This function will destroy a created Marker. | |||
== Syntax == | |||
<pre>DestroyMarker(MarkerName)</pre> | <pre>DestroyMarker(MarkerName)</pre> | ||
== Arguments == | |||
* ''string'' '''MarkerName''' - The name of the created Marker. | |||
== Example == | |||
<source lang=squirrel> | <source lang=squirrel> | ||
function onPlayerCommand( player, cmd, text ) | function onPlayerCommand( player, cmd, text ) | ||
{ | { | ||
if ( cmd == "createmarker" ) | if ( cmd == "createmarker" ) | ||
{ | { | ||
Marker<-CreateMarker( | Marker<-CreateMarker(player.UniqueWorld, Vector( 498.03,-83.8962,9.74025 ), 5,RGB(209, 209, 209),0); | ||
} | } | ||
if ( cmd == "deletmarker" ) | if ( cmd == "deletmarker" ) | ||
Line 25: | Line 24: | ||
== Related Functions == | == Related Functions == | ||
{{Scripting/Squirrel/Functions/Game_Functions}} | {{Scripting/Squirrel/Functions/Game_Functions}} |
Revision as of 16:19, 23 April 2016
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 == "deletmarker" )
{
DestroyMarker(Marker);
}
return 1;
}