PDA

View Full Version : Quick Question


e-1337 n00b
01-14-2004, 09:23 PM
Okay I have a quick question. I wanted to make it so when a person in a group was shot once everyone else in the group would trun on the player. How would I go about doing this?

eascya2
01-14-2004, 09:58 PM
in the OnPlayerDamage part of the Script Dialog of each of the people in the group, insert a list of all the AI in that group, and set player_group in their targets. i.e.

::hallway::russian1->AI_settargetgroups(player_group, enemies)

and do that for each one. Hope that helps.

e-1337 n00b
01-15-2004, 02:37 PM
It worked, thanks.

eascya2
01-15-2004, 06:33 PM
anytime