GetCheckpointColor
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:
A table with keys {r,g,b,a} is returned on success. Throws error if checkpoint is not streamed in.
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.