![]() ![]() ![]() This code is one part of what makes the gsc file run.Īs you can see there are many brackets in the one paragraph of code. The ends the line(Think of it like a sentence). These brackets are a vital component of gsc modding and must be included or else you will get many errors. Self giveWeapon ( ’ famas_reflex_dualclip_silencer_mp ’ ) So I want my favourite gun the Famas with Dual clips and silencer + Reflex sight when I spawn: Now we know some basics of gsc modding we will want to add some commands so that we can do HEAPS of awesome things ingame. The code above^^ is the code used to get your gun and its attachments and camouflage. GiveWeapon(weaponname, 0, calcWeaponOptions (,, , )) #BO2 GSC STUDIO DONWLOAD CODE# 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 #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. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |