Making a $targetname array?

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
ShadowX
Lance Corporal
Posts: 16
Joined: Sun Mar 09, 2003 9:10 am
Location: Ohio

Making a $targetname array?

Post 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
User avatar
mohaa_rox
Field Marshal
Posts: 2760
Joined: Mon Nov 11, 2002 7:05 am
Contact:

Post 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).
Live to map, not map to live.
-mohaa_rox, .map
moderator
Angex
Major
Posts: 293
Joined: Mon Dec 30, 2002 1:23 pm
Contact:

Post 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.
Post Reply