I want to find out where is the script part where the ai get hurt from player or bomb and so forth.
i found in the combat core script a function that mentions hurt but no matter where i place a prompt it wont show of no matter how many times i shoot the soldier.-------------------------- Never mind i found what was wrong, i made copies of the soldier scripts in a ai2 folder and some of the referrals wasn't correct .
Also how can i make a a variable in the ai soldier script that only each ai soldier that has the script can work with their own variable but other ai soldiers with the same script must not be able to work with the variable.
Example : there are 2 ai soldiers with the same script and in the script it has a variable named health1 and in the script health1 becomes the ai soldier health, but the problem is when i shoot the one his health is lower than other one and they both make the variable health1 their health, i want them each to have their own variable with the same name in but cant modify each others variable even if it is the same script.
Otherwise i would have to make a script for every ai soldier that i place in my map.