▼ そしたら「Verse Explorer」が追加されるので、プロジェクト名(わたくしのはMoveTo)を右クリックし、「Add new Verse file to project」を選択します。
▼ Device Nameを『zip_move』に変更したら「作成」ボタンを押します。
▼ 「zip_move.verse」をダブルクリックして開きましょう。
▼ 開いたら、以下のようにコードを入力します。
完全なスクリプト
using { /Fortnite.com/Devices }
using { /Verse.org/Simulation }
using { /UnrealEngine.com/Temporary/Diagnostics }
using { /UnrealEngine.com/Temporary/SpatialMath }
# See https://dev.epicgames.com/documentation/en-us/uefn/create-your-own-device-in-verse for how to create a verse device.
# A Verse-authored creative device that can be placed in a level
zip_move := class(creative_device):
@editable
crash_BP : creative_prop = creative_prop{}
# Runs when the device is started in a running game
OnBegin<override>()<suspends>:void=
spawn:
Rotation_zip()
Rotation_zip()<suspends>:void=
var YawAngle : float = 0.0
var PitchAngle : float = 0.0
loop:
targetRotation := MakeRotationFromYawPitchRollDegrees(YawAngle, PitchAngle, 0.0)
crash_BP.MoveTo(vector3{X:=2208.0, Y:=237.0, Z:=561.0}, targetRotation, 1.0)
set YawAngle = YawAngle + 30.0
set PitchAngle = PitchAngle + 10.0
using { /Fortnite.com/Devices }
using { /Verse.org/Simulation }
using { /UnrealEngine.com/Temporary/Diagnostics }
using { /UnrealEngine.com/Temporary/SpatialMath }
# See https://dev.epicgames.com/documentation/en-us/uefn/create-your-own-device-in-verse for how to create a verse device.
# A Verse-authored creative device that can be placed in a level
zip_move := class(creative_device):
@editable
crash_BP : creative_prop = creative_prop{}
# Runs when the device is started in a running game
OnBegin<override>()<suspends>:void=
spawn:
Rotation_zip()
Rotation_zip()<suspends>:void=
var YawAngle : float = 0.0
var PitchAngle : float = 0.0
loop:
targetRotation := MakeRotationFromYawPitchRollDegrees(YawAngle, PitchAngle, 0.0)
crash_BP.MoveTo(vector3{X:=2208.0, Y:=237.0, Z:=561.0}, targetRotation, 1.0)
set YawAngle = YawAngle + 30.0
set PitchAngle = PitchAngle + 10.0
using { /Fortnite.com/Devices }
using { /Verse.org/Simulation }
using { /UnrealEngine.com/Temporary/Diagnostics }
using { /UnrealEngine.com/Temporary/SpatialMath }
# See https://dev.epicgames.com/documentation/en-us/uefn/create-your-own-device-in-verse for how to create a verse device.
# A Verse-authored creative device that can be placed in a level
zip_move := class(creative_device):
@editable
crash_BP : creative_prop = creative_prop{}
# Runs when the device is started in a running game
OnBegin<override>()<suspends>:void=
spawn:
Rotation_zip()
Rotation_zip()<suspends>:void=
var YawAngle : float = 0.0
var PitchAngle : float = 0.0
loop:
targetRotation := MakeRotationFromYawPitchRollDegrees(YawAngle, PitchAngle, 0.0)
crash_BP.MoveTo(vector3{X:=2208.0, Y:=237.0, Z:=561.0}, targetRotation, 1.0)
set YawAngle = YawAngle + 30.0
set PitchAngle = PitchAngle + 10.0