PR3DAT0R7
  • PR3DAT0R7
  • 50.25% (Neutral)
  • Private Topic Starter
13 years ago
Hello

I'm making a map for ZH. It's some sort of stealth mission. the problem is, my sniper automatically attack all enemies. can I disable that?
it would be even better if he just shot the enemies attack him, but leaving the rest of m alone.

thanks

PR3DAT0R7
Sponsor
Lithium
13 years ago
You need to remove or replace the module "AIUpdateInterface ModuleTag_03"

This module contains the locomotor for this unit, then you need to add again the locomotor

This is the map.ini file

Object AmericaInfantryPathfinder

ReplaceModule ModuleTag_03
Behavior = AIUpdateInterface ModuleTag_03_Override
    AutoAcquireEnemiesWhenIdle = No Stealthed
    MoodAttackCheckRate        = 250
  
End
 End
Locomotor = SET_NORMAL ColonelBurtonGroundLocomotor
  End

😄
luck7
  • luck7
  • 53% (Neutral)
  • Private
13 years ago
should I copy and paste your code??
or just delete "AIUpdateInterface ModuleTag_03" ?

thanks!!
The only way to make a pc go faster, is to throw it out of a window 😃
Lithium
13 years ago
You can create a map.ini file for your map. Make a new file with notepad, rename it to "map.ini" (where .ini replaced the .txt extension) and copy the code in the file

map.ini file need to be inside of your map folder, this file will be send to another players in online games 😄
luck7
  • luck7
  • 53% (Neutral)
  • Private
13 years ago
I added the map.ini file and pasted your code into the file.
the file is inside the map folder but my sniper still start shooting enemies.
The only way to make a pc go faster, is to throw it out of a window 😃
Lithium
13 years ago
Can you upload your map with the map.ini file inside? so I can see what's wrong

EDIT: I made a little test and works fine   test sniper.zip (6kb) downloaded 8 time(s).
luck7
  • luck7
  • 53% (Neutral)
  • Private
13 years ago
here's the map
  Sniper Elite.zip (94kb) downloaded 14 time(s).
The only way to make a pc go faster, is to throw it out of a window 😃
luck7
  • luck7
  • 53% (Neutral)
  • Private
13 years ago
got it.
For some reason, in the WB the object name is not "AmericaInfantryPathfinder" but "AmericaInfantryPathfi"
changing that dint work, but I shortened the Colonel Burton name to the same amount of characters.
My sniper now doesn't attack enemies any more without ordering him to.
Thanks for your help!
The only way to make a pc go faster, is to throw it out of a window 😃
Lithium
13 years ago
I'm glad you made it, and very cool map 👍