- Found in:
- Dylbills PE
voidfunctionMoveToLocalOffset(ObjectReferenceRefToMove, ObjectReferenceCenterRef, floatAngle, floatDistance, floatafZOffset=0.0, boolabMatchRotation=true)Global
Description
Documentation Comment
Like MoveTo, but can specifify local angle / distance offset.
If angle == 0.0, moves object in front of CenterRef by Distance
If angle == 90.0 moves object the right of CenterRef by Distance
If angle == -90, moves object to the left of centerRef by Distance
If angle == 180, moves object behind centerRef by Distance ect.
Example: MoveToLocalOffset(MyRef, Game.GetPlayer(), 90.0, 500.0) moves MyRef 500 units to the right of the player.
No requirements
Parameters
ObjectReferenceRefToMove
ObjectReferenceCenterRef
floatAngle
floatDistance
floatafZOffset=0.0
boolabMatchRotation=true
Examples
Auto-Generated Example
ObjectReference myObjectReference__RefToMove
ObjectReference myObjectReference__CenterRef
float myFloat__Angle
float myFloat__Distance
float myFloat__afZOffset
bool myBool__abMatchRotation
DbMiscFunctions.MoveToLocalOffset(myObjectReference__RefToMove, myObjectReference__CenterRef, myFloat__Angle, myFloat__Distance, myFloat__afZOffset, myBool__abMatchRotation)