Scripting/Squirrel/Functions/CreateMarker: Difference between revisions
Jump to navigation
Jump to search
This wiki is using an old backup from 2020
Some information may be old/missing
ProsuWANTED (talk | contribs) m (Added the ID link and fixed related functions.) |
No edit summary |
||
Line 18: | Line 18: | ||
{ | { | ||
CreateMarker(player.UniqueWorld, Vector( -1734, -715, 5.8680 ), 5, RGB(0, 0, 0), 26 ); | CreateMarker(player.UniqueWorld, Vector( -1734, -715, 5.8680 ), 5, RGB(0, 0, 0), 26 ); | ||
return 1; | |||
} | } | ||
</source> | </source> | ||
=== Notes === | === Notes === | ||
Call [[onPlayerJoin]] were used in this example. More info about them in the corresponding pages. | Call [[onPlayerJoin]] were used in this example. More info about them in the corresponding pages. | ||
== Related Functions == | == Related Functions == | ||
{{Scripting/Squirrel/Functions/Game_Functions}} | {{Scripting/Squirrel/Functions/Game_Functions}} |
Revision as of 16:49, 25 April 2016
This function will create a map icon on the radar.
Syntax
CreateMarker( world, pos, scale, color, SpriteId )
Arguments
- int world - The world ID
- Vector pos - The position of the marker to be created
- int scale - The marker's size
- cRGB color - The marker's color
- int SpriteId - The ID of custom map icon
Example
function onPlayerJoin( player )
{
CreateMarker(player.UniqueWorld, Vector( -1734, -715, 5.8680 ), 5, RGB(0, 0, 0), 26 );
return 1;
}
Notes
Call onPlayerJoin were used in this example. More info about them in the corresponding pages.