
Halocombatevolved
Joined: Nov 20, 2009
Son, I would've been your daddy, but, nevermind.
|
Posted: Sep 23, 2010 05:26 PM
Msg. 1 of 11
What script do I use to make it so if you kill friendlys they will turn back at you.
|
|
|

SlappyThePirate
Joined: Aug 24, 2009
You are irritating, I'll release nothing
|
Posted: Sep 23, 2010 05:28 PM
Msg. 2 of 11
Quote: --- Original message by: Halocombatevolved What script do I use to make it so if you kill friendlys they will turn back at you. It's in the hs_doc. Take a look at it sometime. use commands like ai_alligience, and ai_alligience_broken to test it.
|
|
|

d4rfnader
Joined: Jul 16, 2010
Open mouth, insert sandwhich.
|
Posted: Sep 23, 2010 05:49 PM
Msg. 3 of 11
i think in general though if you kill enough they automatically turn on you.
|
|
|

Halocombatevolved
Joined: Nov 20, 2009
Son, I would've been your daddy, but, nevermind.
|
Posted: Sep 23, 2010 05:58 PM
Msg. 4 of 11
Quote: --- Original message by: d4rfnader i think in general though if you kill enough they automatically turn on you. They don't, I killed hundreds of them in my single player map i'm making and they don't turn.
|
|
|

d4rfnader
Joined: Jul 16, 2010
Open mouth, insert sandwhich.
|
Posted: Sep 23, 2010 06:07 PM
Msg. 5 of 11
oh then just try slappy's way, his should work.
|
|
|

Gamma927
Joined: Jun 12, 2008
Steam: gamma927
|
Posted: Sep 23, 2010 07:06 PM
Msg. 6 of 11
That's the method employed in the campaign. Set them on a different team, and ally them to the player through the use of ai_allegiance.
|
|
|

Halocombatevolved
Joined: Nov 20, 2009
Son, I would've been your daddy, but, nevermind.
|
Posted: Sep 23, 2010 07:25 PM
Msg. 7 of 11
Ok but what do I do so it does it when I kill them. Because it seems like if the other ai kill them they will turn on me without me doing it. Unless the script only applies to the player.
|
|
|

Gamma927
Joined: Jun 12, 2008
Steam: gamma927
|
Posted: Sep 23, 2010 07:36 PM
Msg. 8 of 11
I don't think you understand the purpose of the command. Basically, you put the "friendly AI" on another team, such as human. They will inherently be your enemies. However, when you use the ai_allegiance command, in the form of: (ai_allegiance player human) thus creating an allegiance between the player and everyone on the human team, then they will be actual friendlies. However, when you "betray" the alliance, then the alliance will break, and they will turn against you.
|
|
|

Halocombatevolved
Joined: Nov 20, 2009
Son, I would've been your daddy, but, nevermind.
|
Posted: Sep 23, 2010 09:25 PM
Msg. 9 of 11
Ok I get it now but one more thing. Why is it saying False when I put in "ai_allegiance_broken player human" for sapien's console?
|
|
|

Gamma927
Joined: Jun 12, 2008
Steam: gamma927
|
Posted: Sep 23, 2010 10:42 PM
Msg. 10 of 11
ai_allegiance_broken is a boolean command, which returns whether the two teams have broken their allegiance or not. If it says false, that means that the player and human teams are still allied. If it says true, then that means that they aren't. It's not a command that does something; rather, it's a "getter" command: one that returns a certain value.
|
|
|

PVT Jenkins
Joined: Feb 23, 2009
Advance!!!!!
|
Posted: Sep 23, 2010 10:43 PM
Msg. 11 of 11
Note to Gamma: Gamma get on xfire
|
|
|