Deployable base turret goof
Not sure where I goofed at, but while the turret shows in inventory screen, and can be purchased, there is no message concerning how many out of the maximum avalible have been purchased, no icon for the turret base, and worse yet, I can't deploy the thing.
Ideas where I might have messed up?
Ideas where I might have messed up?
Comments
If its not saying the amount of max you purchased then you got this line missing from the deployables own .cs file in the ondeploy function;
Dont forget to add; To the ondestroy function to add one back to the count when destroyed.
Also add the count to the deployables.cs easy to find the code its at the top and to exec the pack in there as well. Does the pack show on your back when you purchase it?
Edit: Not sure where the ondeploy/ondestroy functions are in turret.cs
Also this should push you in the right direction.
Not tested didnt have much time, the onDestroyed is correct though;
I already have the base turret code I just added to his in a rush at work but great spot