Hi, I'm not really much of a programmer (more Audio) but in order to get my FMOD events to work properly I need to get an int value "health" from a java-script "enemyAI" which is attached to the same object.
I'm aware I need to compile the enemyAI script first by putting it in the right place and I'm also aware I need to use GetComponent, which I have used before for a collision event.
Could anyone be very kind and write a little bit of example script showing me how to do this including any variables that need declared.
Thanks!