Page MenuHomeFeedback Tracker

[BUG/REQUEST] setUnloadInCombat [false,false] not always gets applied - override possible?
New, NormalPublic

Description

For some reason https://community.bistudio.com/wiki/setUnloadInCombat doesnt get applied - maybe due to config parameters, or side perception of the vehicle, or related to the group in combat already. Couldnt narrow it down further.

_vehicle setUnloadInCombat [false,false,true] //additional 3rd parameter to force the setting

Details

Severity
None
Resolution
Open
Reproducibility
N/A
Operating System
Windows 10 x64
Category
Scripting

Event Timeline

pcc added a subscriber: pcc.Wed, Jun 15, 7:41 PM
pcc added a comment.Wed, Jun 15, 7:44 PM

In some vehicles like hunter and offroad 01, I noticed turret gunner gets out randomly.

Are you guys sure it's not due to some FSM?

What FSM? From BI A3 data?

Leopard20 added a comment.EditedThu, Jun 16, 11:21 PM

yeah or some mod. Try disableAI "FSM".

pcc added a comment.EditedFri, Jun 17, 1:23 AM

I'm not using any AI mods. The AI groups are given a move waypoint. During combat sometimes the AI orders the gunner to get out for unknown reasons. Only happens on some vanilla vehicles.

I'm not using any AI mods. The AI groups are given a move waypoint. During combat sometimes the AI orders the gunner to get out for unknown reasons. Only happens on some vanilla vehicles.

Could you mention some examples plz?

pcc added a comment.Fri, Jun 17, 9:19 PM

I mentioned hunter, offroad 01 with turrets, I've also seen it happen with marid and slammer.
The command needs to completely stop AI in gunner and commander seats, from getting out, except in vehicle immobilization.

Oh sorry it was hidden in "older changes", and I didn't bother to expand...
But anyway, I can't reproduce this at all.

pcc added a comment.Sun, Jun 19, 6:07 AM

I use the getout eventhandler to detect when gunner gets out, since I'm not sure when would AI orders the gunner out. Eventually the eventhandler will fire for the gunner, even though they have no reason to get out.