Magicockerel Posted July 29, 2017 Share Posted July 29, 2017 I'm wanting to detect whether an aliased door will open away or towards the player (were they to open it from their current location). I thought that I could determine this using GetHeadingAngle() or GetAngleZ(), but I'm getting conflicting results. I'm using GetHeadingAngle() to determine the orientation of the player relative to the "frontward" direction of the door. That is, I'm using this on an aliased door (making it the reference alias): Self.GetReference().GetHeadingAngle(akOther = PlayerRef) I was trying to see if there were a similar pattern with GetAngleZ() with no such luck: Self.GetReference().GetAngleZ() PlayerRef.GetAngleZ() For example, two different doors both with a Z angle of 180 degrees. One will have a positive heading angle when opening away from the player, and the other will have a negative heading angle when opening away from the player. I'm testing this in interior cells. I've read that you're just unable to determine the nautical direction using GetAngleZ() inside, so it should still serve my intended purpose. If anyone has any ideas, they'd very much be appreciated. The alternative is to manually determine this for each Door form and chuck them in a FormList, which isn't very appealing. Link to comment Share on other sites More sharing options...
Recommended Posts