Page 1 of 1
ai_relationship => target (all players?)
Posted: Wed Aug 23, 2006 2:56 pm
by marnamai
I want the metrocops to be friendlies in my map.
So I use a ai_relationship and set subject to its name or npc_class.
But what to use in target? For single player its "!player" ...
I tried making coop maps in dm before (vorts as enemies) but then they 'll only attacked the first player on the server ...
What target do I have to use in order to be friendly against all players?
Posted: Wed Aug 23, 2006 5:28 pm
by Maxunit
the target is still !player.
It hasnt changed because it is source code related.
Just use !player and it will work. And for the other side, use the entitie name from the npc, not the class name. Using classnames wasnt working for me, only the npc_ one.
Posted: Wed Aug 23, 2006 7:41 pm
by Hyperjag3
Classnames
are things like npc_headcrab, npc_strider

.
Posted: Wed Aug 23, 2006 8:10 pm
by Maxunit
ooops...my fault xD....
Posted: Wed Aug 23, 2006 8:53 pm
by tundra_cool
Use 'player' for the target without the '!'.
Posted: Wed Aug 23, 2006 10:04 pm
by Maxunit
tundra_cool wrote:Use 'player' for the target without the '!'.
I use "!player" and it works fine. I haven't tried it with "player" so far.
Posted: Wed Aug 23, 2006 10:14 pm
by Hyperjag3
tundra_cool wrote:Use 'player' for the target without the '!'.
'player' is technically wrong, but still works. '!player' is correct.
Posted: Thu Aug 24, 2006 12:56 am
by skidz
Hyperjag3 wrote:tundra_cool wrote:Use 'player' for the target without the '!'.
'player' is technically wrong, but still works. '!player' is correct.
Never understood that, not player...
Posted: Thu Aug 24, 2006 2:02 am
by Hyperjag3
! in this case is not the not operator, it is a token that marks the beginning of a special string.