Page MenuHomeFeedback Tracker

new enemies don't shoot when setfriend shifts relationship from friend to enemy (resistance)
Closed, ResolvedPublic

Description

When shifting relation ship between two sids, the setfriend function:

  • enable friendly relationship between 2 sides;

or

  • enable enemy relationship between 2 sides but failed to make new enemies firing at each other (resistance).

This impacts the independent side (resistance)

Details

Legacy ID
687221281
Severity
None
Resolution
Fixed
Reproducibility
Always
Category
AI Issues
Steps To Reproduce
  • Place two groups (blufor and independent).
  • Make relationship friendly at start (editor or if enemy in editor, change the relation ship in init.sqf).
  • in script or debug console trigger these lines: west setfriend [resistance,0]; resistance setfriend [west,0];
  • resistance reacts (and the sides are enemies) but independent don't shoot at Blufor.

On the other hand, a test with opfor:

  • Place two groups (blufor and opfor). player in blue (unique or in group)

(set "player allowdamage false" if you want)

  • Make relationship friendly at start (editor or if enemy in editor, change the relation ship in init.sqf), or just in debug console: east setfriend [west,1];
  • observe red don't shoot at blue and don't seem to notice the presence
  • write the contrary in debug: east setfriend [west,0];
  • red react as the sides are enemies and red fires at blue.
Additional Information

The reveal function doesn't correct anything!
(groupRed reveal [player,4]; for example)

Event Timeline

PiepMGI edited Steps To Reproduce. (Show Details)Aug 2 2015, 9:48 PM
PiepMGI edited Additional Information. (Show Details)
PiepMGI set Category to AI Issues.
PiepMGI set Reproducibility to Always.
PiepMGI set Severity to None.
PiepMGI set Resolution to Fixed.
PiepMGI set Legacy ID to 687221281.May 8 2016, 12:28 PM
PiepMGI edited a custom field.
Adam added a comment.Aug 17 2015, 11:37 AM

Fixed on devbranch!