Scripting/Squirrel/Functions/CreateMarker: Difference between revisions

From Vice City Multiplayer
Jump to navigation Jump to search
Caution icon
This wiki is using an old backup from 2020
Some information may be old/missing
(Created page with "This function will create a map icon on the radar. == Syntax == <pre>CreateMarker( world, pos, scale, color, SpriteId )</pre> == Arguments == * ''int'' '''world''' - The w...")
 
No edit summary
 
(4 intermediate revisions by 4 users not shown)
Line 11: Line 11:
* ''int'' '''scale''' - The marker's size
* ''int'' '''scale''' - The marker's size
* ''[[Scripting/Squirrel/Functions/cRGB|cRGB]]'' '''color''' - The marker's color
* ''[[Scripting/Squirrel/Functions/cRGB|cRGB]]'' '''color''' - The marker's color
* ''int'' '''SpriteId''' - The ID of custom map icon
* ''int'' '''SpriteId''' - The [[Map_Icons|ID]] of custom map icon


== Example ==
== Example ==
{{Scripting/Needs_Example}}
<source lang=squirrel>
function onPlayerJoin( player )
{
    CreateMarker(player.UniqueWorld, Vector( -1734, -715, 5.8680 ), 5, RGB(0, 0, 0), 26 ); 
    return 1;
}
</source>


=== Notes ===
=== Notes ===
 
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/CreateMarker}}
[[Category:Scripting/Squirrel/Functions/Game_Functions]]

Latest revision as of 18:06, 30 January 2017

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.

Related Functions