use random rotation when spawning players' peds

This commit is contained in:
in0finite 2020-06-06 00:53:26 +02:00
parent 9dc4f03c9f
commit fda86887f7

View file

@ -78,7 +78,9 @@ namespace SanAndreasUnity.Behaviours
return false; return false;
} }
transformData = new TransformDataStruct(focusPos.position + Random.insideUnitCircle.ToVector3XZ() * 15f); transformData = new TransformDataStruct(
focusPos.position + Random.insideUnitCircle.ToVector3XZ() * 15f,
Quaternion.Euler(0f, Random.Range(0f, 360f), 0f));
return true; return true;
} }