Posts
331
Respect
35Add +1
Forum Rank
Perk Hacker
Primary Group
Donator ♥
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. |
Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum. |
Turn off developer 1?
Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum. |
You have developer set which gives debug information. If i where you i'd fix it but if your lazy and/or don't care if your map is broken you can do "developer 0" in the console.
As far as the script goes, your if condition isn't right. '>=' would be true if nextCamoNr is over or equal to the array size, so the "afterlife" camo would never get selected.
So change:
to:
also you don't have the code in a while loop, so it'll only run once.
I wouldn't care about fixing but IDK what the problem is as I've removed everything I made today and it still gives me the errors while yesterday it worked. And I don't think the errors can be caused by the skybox.
Anyways, you're right I totally forgot, thanks for pointing it out.
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 |
Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum. |
Doesn't the console give any more information?
That giveWeapon is also bad.
2nd param follows weapon file gunmodel1 etc so 2nd param is an int
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. | |
Oil Rig Beta Access |
When I use my script, I get the following error when starting up my map:
My console gives a shitload of errors:
Just some of them.
Didn't know. I was searching for like 50 minutes for the function declaration but couldn't find it anywhere. I just want to change the gun camo (which is ofc. another model). Don't want it to refill ammo though.
Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum. |
All those error's are basicly because of 'sloppy' scripting, variable's arent defined propperly and the result is it's checking against an undefined variable ( and that will Always come out true i believe ).
Now you say the error is about a variable called NUMBER ( i dont see that in your code anywhere ) , so it's prob related to some other script, or you have changed your code allready. Fixing those kind of errors is useally pretty easy, since it'll give you the script + line number and the variable's involved.
For changing the cammo do like pwn said and use the number of the model you used in the weaponfile, so for example:
Then it will use the gunmodel2 and worldmodel2 from the weaponfile, if that refils your ammo you'd prob have to correct that yourself by getting clip and ammo count before swapping weapons, and then set those numbers on the 'new' gun. Use: