Started by
SomeoneElse4202
on
Topic category: Troubleshooting, bugs, and solutions
I'm currently trying to make "Shadow Pants" that make the player invisible when wearing in dark areas and at night. I'm currently experiencing an issue that if the player takes off the pants while invisible, they stay invisible. I'm trying make the procedure check if the player takes off the pants by checking if they still wear it after a delay. This crashes the game though, I know that this is the issue because I've tried removing it and it worked. I have a screenshot of the tick update code here. Any way I can improve the code so it doesn't crash?
Edited by SomeoneElse4202 on Tue, 07/16/2024 - 00:48
the procedure gets the item in armor slot 101 instead of 1, that alone is enough to crash the game, if it doesn't work even with armor slot 1 the problem could be with the thing that calls that procedure
That cannot be the problem, I have checked slot 101 for a different procedure that checks for pants in the leg slot and it worked. I'll still try setting it to 1 and I'll update if it worked
It has actually worked, thank you