For example, pure red would be represented as "ff 00 00". These numbers represent the amount of red, green and blue (in that order) that make up the final color. If you need to use quotes inside a string, preface it with a backslash.Ĭolor CVARs are a special type of string variable represented by a series of three hexadecimal numbers. If you removed the quotes around it, then it would not be a string. This is a series of text characters enclosed in quotes: For example, "Felix loitered lecherously on the lot" is a string. This is an ordinary number that can have a decimal point. For example, 1 is an integer, but 1.2 is not. This is an ordinary number without a decimal point. As shorthand, setting a boolean variable to 0 will set it to false, and setting it to anything non-zero will set it to true. This type of variable represents a yes/no or on/off value. There are six types of CVARs: Boolean, Integer, Float, String, Colour and Flag.
0 Comments
Leave a Reply. |