Currently creating a basic hangar door animation. As there is no variable that allows me to check the distance between the aircraft and a static object, I've created a transition BlendTreeState script that checks if the plane is within a certain latitude and longitude or not. Currently the script is using the 'Plane Latitude' and 'Plane Longitude' variables. I remember reading that 'A;' (Aircraft) Variables are not accessible. Though SDK says that the Plane Latitude and Plane Longitude is both Settable and Writeable.
Current Script;
<?xml version="1.0" encoding="utf-8" ?>
<ModelInfo version="1.1" guid="{3768dfce-6cb0-4f31-93e9-61298068f9ab}">
<Animation name="DoorOpen1" guid="E4E8018C-38FD-4246-A811-4BE7EEA90B7B" type="Standard"/> <!-- Door Open Animation -->
<Animation name="DoorClose1" guid="0539b1cc-3d0b-4425-b9f3-4a5d9b0efa6c" type="Standard"/> <!-- Door Close Animation -->
<Animation name="DoorOpenedStandby1" guid="567b65cb-04d6-4af3-b360-4125a9275b2a" type="Standard"/> <!-- Door Transition Animation -->
<Animation name="DoorClosedStandby1" guid="73ed0403-fe84-4609-b6a4-5cf6012c5aaf" type="Standard"/> <!-- Door Transition Animation -->
<AnimGraph>
<DefaultState name="DoorClosedStandby"/>
<BlendTreeState name="DoorClosedStandby"/>
<Animations>
<Animation guid="73ed0403-fe84-4609-b6a4-5cf6012c5aaf" loop ="True" speed="1"/>
</Animations>
<BlendTreeState name="DoorOpenedStandby"/>
<Animations>
<Animation guid="73ed0403-fe84-4609-b6a4-5cf6012c5aaf" loop ="True" speed="1"/>
</Animations>
<BlendTreeState name="DoorClose"/>
<Animations>
<Animation guid="73ed0403-fe84-4609-b6a4-5cf6012c5aaf" loop ="True" speed="1"/>
</Animations>
<BlendTreeState name="DoorOpen"/>
<Animations>
<Animation guid="73ed0403-fe84-4609-b6a4-5cf6012c5aaf" loop ="True" speed="1"/>
</Animations>
<Transition name="DoorClosedStandby to DoorOpen" start="DoorClosedStandby" end ="DoorOpen" duration="1.0">
<Condition>
(A: PLANE LATITUDE) 0.60317980207113097713 >
(A: PLANE LATITUDE) 0.60316811367606859573 <
(A: PLANE LONGITUDE) 2.6317747681133729643 >
(A: PLANE LONGITUDE) 2.6317880625657732452 <
and
and
and
</Condition>
</Transition>
</AnimGraph>
</ModelInfo>
(SPACE BETWEEN 'A:' and 'PLANE LATITUDE/LONGITUDE' set for example to stop emojis. No space in orginal code.)
When running that code I get these errors;
I'm clearly missing something here. I'm a 3D artist mainly, so coding is not my forte so looking for a big brain to either help me piece this together, or help me figure out an alternative method.
All help would be greatly appreciated.
Current Script;
<?xml version="1.0" encoding="utf-8" ?>
<ModelInfo version="1.1" guid="{3768dfce-6cb0-4f31-93e9-61298068f9ab}">
<Animation name="DoorOpen1" guid="E4E8018C-38FD-4246-A811-4BE7EEA90B7B" type="Standard"/> <!-- Door Open Animation -->
<Animation name="DoorClose1" guid="0539b1cc-3d0b-4425-b9f3-4a5d9b0efa6c" type="Standard"/> <!-- Door Close Animation -->
<Animation name="DoorOpenedStandby1" guid="567b65cb-04d6-4af3-b360-4125a9275b2a" type="Standard"/> <!-- Door Transition Animation -->
<Animation name="DoorClosedStandby1" guid="73ed0403-fe84-4609-b6a4-5cf6012c5aaf" type="Standard"/> <!-- Door Transition Animation -->
<AnimGraph>
<DefaultState name="DoorClosedStandby"/>
<BlendTreeState name="DoorClosedStandby"/>
<Animations>
<Animation guid="73ed0403-fe84-4609-b6a4-5cf6012c5aaf" loop ="True" speed="1"/>
</Animations>
<BlendTreeState name="DoorOpenedStandby"/>
<Animations>
<Animation guid="73ed0403-fe84-4609-b6a4-5cf6012c5aaf" loop ="True" speed="1"/>
</Animations>
<BlendTreeState name="DoorClose"/>
<Animations>
<Animation guid="73ed0403-fe84-4609-b6a4-5cf6012c5aaf" loop ="True" speed="1"/>
</Animations>
<BlendTreeState name="DoorOpen"/>
<Animations>
<Animation guid="73ed0403-fe84-4609-b6a4-5cf6012c5aaf" loop ="True" speed="1"/>
</Animations>
<Transition name="DoorClosedStandby to DoorOpen" start="DoorClosedStandby" end ="DoorOpen" duration="1.0">
<Condition>
(A: PLANE LATITUDE) 0.60317980207113097713 >
(A: PLANE LATITUDE) 0.60316811367606859573 <
(A: PLANE LONGITUDE) 2.6317747681133729643 >
(A: PLANE LONGITUDE) 2.6317880625657732452 <
and
and
and
</Condition>
</Transition>
</AnimGraph>
</ModelInfo>
(SPACE BETWEEN 'A:' and 'PLANE LATITUDE/LONGITUDE' set for example to stop emojis. No space in orginal code.)
When running that code I get these errors;
I'm clearly missing something here. I'm a 3D artist mainly, so coding is not my forte so looking for a big brain to either help me piece this together, or help me figure out an alternative method.
All help would be greatly appreciated.
Last edited:

