Posts
38
Respect
Forum Rank
Legless Crawler
Primary Group
Member
Login Issues
Forgot password?Activate Issues
Account activation email not received? Wrong account activation email used?Other Problems?
Contact Support - Help Center Get help on the UGX Discord. Join it now!Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum. | |
Has shown excellence and experience in the area of custom scripting in the UGX-Mods community. | |
BO3 Modtools Alpha | This user has access to the Black Ops 3 Modtools Alpha |
Level is the same thing as a global. It exists everywhere and can be accessed whenever.
SpawnStruct allocates a certain amount of data for that specific variable, it's different from initializing it as an array. You might find a better description on the scripting reference here or on zeroys script reference.
Level is the same thing as a global. It exists everywhere and can be accessed whenever.
SpawnStruct allocates a certain amount of data for that specific variable, it's different from initializing it as an array. You might find a better description on the scripting reference here or on zeroys script reference.
I searched here in reference but did not find these functions: \
But thank you very much, helped a lot!
there are aton of functions that arent engine based, those are the ones that tend to not show up in refrences. I just recommend looking at the #includes' files. they usually contain the functions that arent server based... actually they DO contain
Just to add onto what DidUKnowiPwn said:
...however the things that you associate with it can only be accesses after they have been declared. Attempting to access the level variable(say level.DLC3) before it is declared will result in an undefined/uninitialized variable.
To my understanding, spawnStruct() just spawns a script_struct. Meaning you can give it a targetname, script_noteworthy, or script_string and get it from in-game(it presumably spawns at (0, 0, 0).
Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum. | |
Has shown excellence and experience in the area of custom scripting in the UGX-Mods community. | |
BO3 Modtools Alpha | This user has access to the Black Ops 3 Modtools Alpha |
If you want to override any non-DLC3 map you're going to have use its script as you should be on DLC3 mod tools. Whenever you want to edit an existing file for only a specific map/mod you'll have to copy that file and it's location (I.e. Raw/Maps/_zombiemode_perks.gsc would go in mod/modname/maps/_zombiemode_perks.gsc, NOTE: may not apply to all asset types such as fonts, fonts lose their inner folder).
I think the spawnStruct() function can be thought as a C-style structure data; even easier to use.
It is used in some _zombiemode_*.gsc scripts, a lot in Black Ops gsc.