mirror of
https://github.com/GTA-ASM/SanAndreasUnity
synced 2024-11-15 00:37:09 +00:00
use small raycast distance when teleporting through enexes
This commit is contained in:
parent
5fb330cbb0
commit
8d93a7f2c5
1 changed files with 1 additions and 1 deletions
|
@ -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));
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue