|
Post by solarfalcon on Jan 20, 2018 10:21:38 GMT
So, I'm not gonna lie, I'm not that versed in C#, but that's why you guys made stuff like this right?
I'm finally at the point in my project where I need to use Invector's controller for my AI controlled enemies, and all I need to know is how to override the damage and stamina controls. I have my own system I designed and I basically would like to add a reference to Invector's character controller and manipulate the numbers in my scripts. How is this done? I can't figure out what class is responsible for this. I've read vCharacter, but I can't make a reference to vCharacter in my script.
I feel like I'm missing something very important in my C# knowledge. Thanks for reading this.
|
|
|
Post by solarfalcon on Jan 21, 2018 9:53:17 GMT
No one knows? There isn't very much documentation about this asset. I'd appreciate at least a hint so I can get my moneys worth for this product.
|
|
|
Post by Invector on Jan 22, 2018 13:47:13 GMT
Well there is not much mystery there... you simple access the character using tpInput, tpController, vCharacter, whatever script you need and access the currentHealth value, the variables are public so just grab them
|
|
|
Post by solarfalcon on Jan 24, 2018 12:42:53 GMT
After crawling through the code, I figured out what I was doing wrong. I now have it all properly under control.
|
|