|
Post by commended on Mar 26, 2017 11:37:16 GMT
So, I'm making a Destruction Derby kind of game (for testing purposes), each vehicle will be provided with a health ValuePrint, some higher than others depending on the vehicle. Anyway I want it so that the more force of the contact the more I want the health to go down. Any ideas? I saw something in the EOC options saying contact force is value to print, perhaps that may be helpful?
|
|
|
Post by indiedev on Mar 26, 2017 11:59:44 GMT
if you want multiple values it will need to be done by scripting, or multiple EOC's may also work.
|
|
|
Post by Power Supersport on Mar 26, 2017 12:05:19 GMT
int health = 1000; void Main () { if (IN_0 > 5000) { health -= IN_0 / 10000; } } Where IN_0 is your contact force...
|
|