News:

Login  |  Register

Author Topic: How to make AI only see Player as Enemy  (Read 21722 times)

Hybrid_Soldier196

  • Member
  • *
  • Posts: 121
  • Karma: +0/-0
    • View Profile
How to make AI only see Player as Enemy
« on: October 22, 2006, 06:17:19 PM »
In this tutorial you will find out how to make any pawn (i hope, because i only tried with the Droideka, but in theory it should work) recognize only the player as the enemy, not other pawns of the same type.
----------
Step 1
----------
Load up your favorite map, or one you want to add pawns to, and select a pawn to use. Place as many as you want onto the map. Right click on your pawn, scroll to select, and then "All (whatever pawn you picked)" Right click again to go to "Actor Properties"

----------
Step 2
----------
On the "Actor Properties" list find {Hidden} as diagramed in pic below.



----------
Step 3
----------
In the list under {Hidden} scroll down to "bValidEnemy" and change the value to "False" as diagramed in the pic below.



----------
Step 4
----------
Build All (i dont think this is nessecary but what the heck, do it to be safe) and save the map.

When the map loads get ready!!! There aware of your presence!!! :shock:



Carefull!! They do shoot back......



with incredible accuracy!!!



Enjoy!!
« Last Edit: May 07, 2007, 06:19:25 PM by Hybrid_Soldier196 »

Delta_96[DeltaSquad]

  • Member
  • *
  • Posts: 80
  • Karma: +0/-0
    • View Profile
(No subject)
« Reply #1 on: October 22, 2006, 08:14:00 PM »
thanlos i couldnt figure that out for my own map now i can put some annoying battle droids on there
« Last Edit: December 31, 1969, 05:00:00 PM by Delta_96[DeltaSquad] »

Delta_96[DeltaSquad]

  • Member
  • *
  • Posts: 80
  • Karma: +0/-0
    • View Profile
(No subject)
« Reply #2 on: October 23, 2006, 07:05:24 AM »
i was looking through the stuff under hidden and i was wondering what the owner things were about and what do they do
« Last Edit: December 31, 1969, 05:00:00 PM by Delta_96[DeltaSquad] »

Hybrid_Soldier196

  • Member
  • *
  • Posts: 121
  • Karma: +0/-0
    • View Profile
(No subject)
« Reply #3 on: October 23, 2006, 09:35:36 AM »
Just experiment....but remember to try 1 thing at a time, otherwise you wouldnt know what did what.
Ill post more tuts if i find anything else useful.
« Last Edit: December 31, 1969, 05:00:00 PM by Hybrid_Soldier196 »

Delta_96[DeltaSquad]

  • Member
  • *
  • Posts: 80
  • Karma: +0/-0
    • View Profile
(No subject)
« Reply #4 on: October 23, 2006, 09:37:56 AM »
yeah i learned that the hard way
« Last Edit: December 31, 1969, 05:00:00 PM by Delta_96[DeltaSquad] »

DooFi

  • Member
  • *
  • Posts: 393
  • Karma: +0/-0
    • View Profile
(No subject)
« Reply #5 on: October 23, 2006, 09:38:40 AM »
awesome. I've been searching for this option (although i personally dont like putting pawns in my maps :P). I'm currently making it fit the mod site. Do you think we need bigger pics? Then I'd make popups like in my collision tut.

« Last Edit: December 31, 1969, 05:00:00 PM by DooFi »

Hybrid_Soldier196

  • Member
  • *
  • Posts: 121
  • Karma: +0/-0
    • View Profile
(No subject)
« Reply #6 on: October 23, 2006, 09:45:07 AM »
Actually the pics are kinda small :mrgreen: but to the point.
« Last Edit: December 31, 1969, 05:00:00 PM by Hybrid_Soldier196 »

Squad_Sammaron

  • Member
  • *
  • Posts: 304
  • Karma: +0/-0
    • View Profile
(No subject)
« Reply #7 on: October 23, 2006, 01:06:21 PM »
true i don't see the issue...unless your doin multiple types of enemies. dont think it'll work then. by that i mean trando's will shoot droids. wat i dont get is the team index...y doesnt that work...*pondersome pose :D*
« Last Edit: December 31, 1969, 05:00:00 PM by Squad_Sammaron »
"Testosterone - You\'ve never seen so much man in one place."
       Title of Regal, Tales of Symphonia
       Stolen by Sammaron, Lord of All

Squad_Sammaron

  • Member
  • *
  • Posts: 304
  • Karma: +0/-0
    • View Profile
(No subject)
« Reply #8 on: October 23, 2006, 01:51:26 PM »
i'm so dumb :D ends up all you gotta do for that (or a much harder way than hybrid thought) is to add an AI script to the people and add a sequence with 'ACTION_SetThreat'. then just add the tag of your new friend and set the bThreat or w/e to false. all done :D
« Last Edit: December 31, 1969, 05:00:00 PM by Squad_Sammaron »
"Testosterone - You\'ve never seen so much man in one place."
       Title of Regal, Tales of Symphonia
       Stolen by Sammaron, Lord of All

Hybrid_Soldier196

  • Member
  • *
  • Posts: 121
  • Karma: +0/-0
    • View Profile
(No subject)
« Reply #9 on: October 23, 2006, 03:22:14 PM »
Actually if you follow the tutorial and add any pawn, say clone troopers, they will only attack the player...NOT each other. I know.....I tried. :mrgreen: but the script probably works too, but i want to keep it simple and so my way works, at least the way I want it too.
« Last Edit: December 31, 1969, 05:00:00 PM by Hybrid_Soldier196 »

Squad_Sammaron

  • Member
  • *
  • Posts: 304
  • Karma: +0/-0
    • View Profile
(No subject)
« Reply #10 on: October 23, 2006, 03:50:55 PM »
o yea oops :D i thought they would still attack other enemy pawns :D
« Last Edit: December 31, 1969, 05:00:00 PM by Squad_Sammaron »
"Testosterone - You\'ve never seen so much man in one place."
       Title of Regal, Tales of Symphonia
       Stolen by Sammaron, Lord of All

Hybrid_Soldier196

  • Member
  • *
  • Posts: 121
  • Karma: +0/-0
    • View Profile
(No subject)
« Reply #11 on: October 23, 2006, 05:43:40 PM »
you learn something new every day :lol:
« Last Edit: December 31, 1969, 05:00:00 PM by Hybrid_Soldier196 »

Squad_Sammaron

  • Member
  • *
  • Posts: 304
  • Karma: +0/-0
    • View Profile
(No subject)
« Reply #12 on: October 24, 2006, 03:27:43 PM »
hey doofi isn't there a tut that says enemies always attacks you? that'd need to be changed
« Last Edit: December 31, 1969, 05:00:00 PM by Squad_Sammaron »
"Testosterone - You\'ve never seen so much man in one place."
       Title of Regal, Tales of Symphonia
       Stolen by Sammaron, Lord of All


Hybrid_Soldier196

  • Member
  • *
  • Posts: 121
  • Karma: +0/-0
    • View Profile
(No subject)
« Reply #14 on: October 26, 2006, 12:47:14 PM »
Sounds good.
« Last Edit: December 31, 1969, 05:00:00 PM by Hybrid_Soldier196 »