Page 1 of 1

Making a $targetname array?

Posted: Mon Mar 10, 2003 12:20 am
by ShadowX
I need to make a targetname array and initialize it. Can anyone assist me in this? It is for the enemy ai. I am trying to get an mg42 to shoot at them manned by allies. Anyway, that's another thread. I just need to know how to do the array. I looked in the help files that came with SDk but it doesn't explain it too well. It talks about $player being a targetname array if there are more than one. So I guess you just name all your ai the same? (wierd)

ShadowX

Posted: Mon Mar 10, 2003 6:19 am
by mohaa_rox
Select the neccessary objects and press "n" to bring up the entities menu. Then type "targetname" in the top box (key) and the "xxx" in the bottom box (value).

Posted: Mon Mar 10, 2003 12:21 pm
by Angex
You previously mentioned working with C++ and Java, where you have to inistialise arrays. However in MoH there is no need to define the array first.