

Gsc Studio Pc Quote:Variables in gsc does not have to be defined by type like in more complex scripts neither does it have to be defined before use. Level.variable = “Random Text’ - stores the variable to the level, resets if map_restart(true) įunctionvariable = ::function - stores a function into a variable Self.variable = ‘Killingdyl’ - stores the variable attached to whatever self is, most of the time its a player There are different ways variables stored in gsc Int(string) turns a string '1’ to the integer 1 #BO2 GSC STUDIO DONWLOAD PC#

To call the functionvariable you do it like this Position = (x, y, z) - position is an array with 3 valuesĪngle = (pitch, yaw, roll) - angle is an array with 3 valuesĪrray = - defines an array, doing this will clear any previous values inside the arrayĪrray = - defines multi-dimensional arrays, clears any previous values. Variables are used in if-else statements.
