selection name is same as mem point (eg. "seat_driver")
480 {
482 if (pSeatSelection.
Length() > 0)
483 {
484 if (MemoryPointExists(pSeatSelection))
485 {
486 vector conditionPointMS = GetMemoryPointPos(pSeatSelection);
487 vector conditionPointWS = ModelToWorld(conditionPointMS);
488
490 conditionPointWS[1] = 0;
491 pFromPos[1] = 0;
492
494 return true;
495 }
496 }
497
498 return false;
499 }
static proto native float Distance(vector v1, vector v2)
Returns the distance between tips of two 3D vectors.
proto native int Length()
Returns length of string.