Sign up Calendar Latest Topics
 
 
 


Reply
  Author   Comment  
DizzyKungFu

Registered:
Posts: 94
Reply with quote  #1 
I'm working on a script where I want to some NPC neutral ships to attack a named biomech. But if I give the neutrals ATTACK or CHASE commands, they will drive right up to the biomech but won't fire at it! Any idea what is happening?
Mike Substelny

Avatar / Picture

Administrator
Registered:
Posts: 2,351
Reply with quote  #2 
What are the sideValues you are using? You need to make sure they are enemies of each other or they won't attack.

I have long been frustrated with BioMechs in mission scripts because there is so much about their behavior that is not exposed to the mission script language.

__________________
"The Admiralty had demanded six ships; the economists offered four; and we finally compromised on eight."
- Winston Churchill
DizzyKungFu

Registered:
Posts: 94
Reply with quote  #3 
The neutrals are side 2 (Player), and from my testing, this seems required to be a neutral cuz anything else results in a red icon (unless I'm missing something big). I've tried the Biomech with the following sides: 0 (No Side), 1 (Enemy), 3, and 31, and even just leaving the side switch out of the create line, and the behavior is the exact same. I did originally consider that sideValues might be the problem because I noticed that the biomech appears on the map as a dark orange icon instead of the normal dark red of an enemy. But even tying to change the side of the biomech later (after the create line) does not change the icon color or fix the problem.

Of note, the BioMech has no problems following orders and attacking the neutrals! Which is fine, BUT I also want the neutrals to fight back!!
DizzyKungFu

Registered:
Posts: 94
Reply with quote  #4 
I'm curious, is this also a problem in Solo Games? Has anyone ever seen a neutral ship attack a BioMech in a Siege, Peacetime, etc.?
Previous Topic | Next Topic
Print
Reply

Quick Navigation:

Easily create a Forum Website with Website Toolbox.