Ace3: Adjusting "ACE_GForceCoef" on individual unit via scripts?

Created on 30 Mar 2019  路  2Comments  路  Source: acemod/ACE3

First off I apologize if this is the wrong place to post this.

I've been looking at the code of ace_gforces.pbo and was wondering if there's any way that I can set "ACE_GForceCoef=" on an individual unit/player via 3DEN/mission scripts or even on the fly via the debug console or a script. I'd assume something along the lines of _unit setGForceCoef 0.3 or [_unit,0.3] execVM ace_fnc_setGFoceCoef if the functionality is already built into ACE3; Otherwise maybe a more complicated way of overriding the unit class for that individual unit via script. Is this possible or would I need to make a feature request for the former example?

kinquestion

Most helpful comment

You need to set the variable ACE_GForceCoef on the unit.

_unit setVariable ["ACE_GForceCoef", 0.3, true];

All 2 comments

You need to set the variable ACE_GForceCoef on the unit.

_unit setVariable ["ACE_GForceCoef", 0.3, true];

@654wak654 Thank you, I'll try that out. Also I take it that'll override the value set in CfgVehicles but not CfgWeapons, correct?

Edit: To clarify, what I mean by "CfgWeapons" is the flight suits and "CfgVehicles" being the units.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Dyadka940 picture Dyadka940  路  3Comments

pognivet picture pognivet  路  3Comments

austinjames314 picture austinjames314  路  4Comments

thirald picture thirald  路  3Comments

ItayNoyman picture ItayNoyman  路  3Comments