`hookupVariables` cannot be used in VMs
DrprofLuigi opened this issue ยท 2 comments
On trailers, hookupVariables
cannot be used in VMs.
For example I have a basic VM thatapplies the p_brake
lever when either t_brake
or !connection_1_1_connected
is 1.
{
"variable": "p_brake",
"animations": [
{
"animationType": "translation",
"variable": "t_brake",
"axis": [0, 0, 1]
},
{
"animationType": "translation",
"variable": "!connection_1_1_connected",
"axis": [0, 1, 0]
}
],
"minValue": 0,
"maxValue": 1
}
But because t_brake
is pulled from the towing truck via hookupVariables
, it does not effect this VM.
This also applies to subParts. If a subPart references the brake
in animations, lightObjects, etc. it works fine. However when that subpart tries to use brake
in a VM, it doesn't work.
For UNU specifically, this also prevents animated suspension from being able to activate.
This may actually be due to VMs not working on trailers period.
I have two gauges on my tank trailers. One simply references a part variable, and the other does math with VMs. The latter does not work when the trailer is attached to a vehicle, but it does when it is not connected.