ai_relationship => target (all players?)

Need Help? The Day isnt going so well on the Mapping front?
Post Reply
marnamai
Polygon
Polygon
Posts: 21
Joined: Mon Aug 21, 2006 4:26 pm

ai_relationship => target (all players?)

Post 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?
Maxunit
prop_physics
prop_physics
Posts: 135
Joined: Fri Aug 04, 2006 1:00 pm
Location: Osprey

Post 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.
User avatar
Hyperjag3
npc_strider
npc_strider
Posts: 604
Joined: Mon May 29, 2006 8:54 am
Contact:

Post by Hyperjag3 »

Classnames are things like npc_headcrab, npc_strider :wink:.
Maxunit
prop_physics
prop_physics
Posts: 135
Joined: Fri Aug 04, 2006 1:00 pm
Location: Osprey

Post by Maxunit »

ooops...my fault xD....
tundra_cool
npc_citizen
npc_citizen
Posts: 175
Joined: Fri Aug 04, 2006 10:08 pm

Post by tundra_cool »

Use 'player' for the target without the '!'.
Maxunit
prop_physics
prop_physics
Posts: 135
Joined: Fri Aug 04, 2006 1:00 pm
Location: Osprey

Post 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.
User avatar
Hyperjag3
npc_strider
npc_strider
Posts: 604
Joined: Mon May 29, 2006 8:54 am
Contact:

Post by Hyperjag3 »

tundra_cool wrote:Use 'player' for the target without the '!'.
'player' is technically wrong, but still works. '!player' is correct.
skidz
Obsidian Gold
Obsidian Gold
Posts: 3228
Joined: Mon May 29, 2006 6:36 am
Location: Maple Ridge, BC
Contact:

Post 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...
User avatar
Hyperjag3
npc_strider
npc_strider
Posts: 604
Joined: Mon May 29, 2006 8:54 am
Contact:

Post by Hyperjag3 »

! in this case is not the not operator, it is a token that marks the beginning of a special string.
Post Reply