

#Gsc download bo2 code#
The code above^^ is the code used to get your gun and its attachments and camouflage. GiveWeapon(weaponname, 0, calcWeaponOptions (,, , )) Tip: When adding any gun make sure to have _mp if its in multiplayer and have the gun name etc between the quotes “”. So now what? We add it to the OnPlayerSpawned() Thread: Info:VAC2 DETECTED - use in private matches with sv_vac 0Ĥ. Start the game without any hacks loaded.Īll Credits go to TMS_Killingdyl (loll) for this useful information about variables: 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 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.
