Call of Duty: Black Ops 3 => Help Desk => Scripting => Topic started by: andrizzlepc on July 25, 2018, 10:25:45 am
Title: Custom Door Error?
Post by: andrizzlepc on July 25, 2018, 10:25:45 am
Wondering whats wrong with my script, when i keep it in the main .gsc script i get an error for unresolved local variable "player"? Can't seem to find any help with that online, when I put the script in a different file and include and then call it i get an unresolved external variable. Any help appreciated - thanks.
*in function main()* level thread vault_door();
Title: Re: Custom Door Error?
Post by: gympie6 on July 25, 2018, 05:56:12 pm
Wondering whats wrong with my script, when i keep it in the main .gsc script i get an error for unresolved local variable "player"? Can't seem to find any help with that online, when I put the script in a different file and include and then call it i get an unresolved external variable. Any help appreciated - thanks.
*in function main()* level thread vault_door();
Fixed some bugs and I think you had too many brackets, try this
Title: Re: Custom Door Error?
Post by: andrizzlepc on July 26, 2018, 09:07:14 am
Okay I tried your code and compiled and linked however the triggers were just displaying the "Not Available" text, I just tried compiling and linking again and its back to giving me the " Compiler Internal Error : Uninitialized local variable 'player' " error. Absolutely no clue what is wrong.
Title: Re: Custom Door Error?
Post by: HitmanVere on July 26, 2018, 01:20:06 pm
Should be:
Title: Re: Custom Door Error?
Post by: andrizzlepc on July 26, 2018, 02:08:11 pm
Thanks lmao can't believed I missed that, it compiles now but when i run the map it just black screens and never loads??
Title: Re: Custom Door Error?
Post by: Harry Bo21 on July 26, 2018, 03:38:26 pm
v_trigger is not a proper waittill
Title: Re: Custom Door Error?
Post by: andrizzlepc on July 26, 2018, 08:52:06 pm
What do you mean?
Title: Re: Custom Door Error?
Post by: andrizzlepc on July 31, 2018, 10:36:02 am
If anyone looks at this post and had same issues I fixed it this is what it is when it works lol.
Title: Re: Custom Door Error?
Post by: sevengpluke on July 31, 2018, 05:06:11 pm
Next time use the code tags around script. Makea it easier to read. This is the 2nd time I've had to edit it for you. Thanks.
Title: Re: Custom Door Error?
Post by: waynen on October 24, 2018, 03:12:23 pm