use small raycast distance when teleporting through enexes

This commit is contained in:
in0finite 2019-11-22 17:53:39 +01:00
parent 5fb330cbb0
commit 8d93a7f2c5

View file

@ -705,7 +705,7 @@ namespace SanAndreasUnity.Behaviours
void TeleportToEnex(Importing.Items.Placements.EntranceExit enex)
{
TransformDataStruct transformData = Cell.GetEnexExitTransform(enex);
this.Teleport(transformData.position, transformData.rotation, new FindGroundParams(){tryFromAbove = false});
this.Teleport(transformData.position, transformData.rotation, new FindGroundParams(false, 50));
}