SetMarkerColor: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
Line 13: Line 13:


==Example==
==Example==
  newmarker = [[createMarker]] ( 1, 1000, 1000, 1000, 255, 0, 0 )
  newmarker = [[createMarker]] ( 1000, 1000, 1000, 1, 255, 0, 0 )
   
   
  [[setMarkerColor]] ( newmarker, 0, 255, 0 )
  [[setMarkerColor]] ( newmarker, 0, 255, 0 )


The above code will turn a red marker into a green one.
The above code will turn a red marker into a green one.

Revision as of 15:37, 31 March 2006

Description

This function sets the color of the specified marker by modifying the values for red, green and blue.

Syntax

bool setMarkerColor ( marker marker, int r, int g, int b )

Required Arguments

  • marker: The marker that you wish to set the color of.
  • r: The amount of red in the final color.
  • g: The amount of green in the final color.
  • b: The amount of blue in the final color.

Example

newmarker = createMarker ( 1000, 1000, 1000, 1, 255, 0, 0 )

setMarkerColor ( newmarker, 0, 255, 0 )

The above code will turn a red marker into a green one.