Initial commit version 0.1.0
This commit is contained in:
13
ResultScripts/RYBQuestStage11UpdateBoatPos.psc
Normal file
13
ResultScripts/RYBQuestStage11UpdateBoatPos.psc
Normal file
@@ -0,0 +1,13 @@
|
||||
; RYB Quest Stage 11 Update Boat Position and Angle
|
||||
|
||||
set RYB.BoatX to RYBBoatRef.GetPos x
|
||||
set RYB.BoatY to RYBBoatRef.GetPos y
|
||||
set RYB.BoatZ to RYBBoatRef.GetPos z
|
||||
set RYB.BoatZ to RYB.BoatZ - RYB.RockZOffset ; remove rocking offset from last frame to get "true" Z
|
||||
set RYB.BoatAngle to RYBBoatRef.GetAngle z
|
||||
set RYB.BoatAngle to RYB.BoatAngle - 90
|
||||
if (RYB.BoatAngle < 0)
|
||||
set RYB.BoatAngle to RYB.BoatAngle + 360
|
||||
elseif (RYB.BoatAngle >= 360)
|
||||
set RYB.BoatAngle to RYB.BoatAngle - 360
|
||||
endif
|
||||
Reference in New Issue
Block a user