GetCheckpointColor

From NPC for VCMP 0.4 Servers
Revision as of 15:37, 12 November 2023 by Habi (talk | contribs) (Created page with "{{Welcome|desc=Gets the colour(r,g,b,a) of a checkpoint as a table. | params=<source>( checkpointId )</source> <poem>checkpointId : The ID of the checkpoint whose colour is to be obtained. </poem>| example=<source lang="lua"> if(IsCheckpointStreamedIn(checkpointId)) { local color=GetCheckpointColor(checkpointId); print("r: "+color.r+", g: "+color.g+ ", "b: "+color.b+", a: "+color.a+"\n"); } </source>| relfuncs=*GetCheckpointPos *GetCheckpointRadius *IsCheckpoin...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search


Description:
Gets the colour(r,g,b,a) of a checkpoint as a table.


Parameters:

( checkpointId )

checkpointId : The ID of the checkpoint whose colour is to be obtained.


Return Values:
This function does not return any specific values.


Example

if(IsCheckpointStreamedIn(checkpointId))
{
local color=GetCheckpointColor(checkpointId);
print("r: "+color.r+", g: "+color.g+ ", "b: "+color.b+", a: "+color.a+"\n");
}

Related Functions

The following functions may be helpful as they relate to this function in one way or another.