【Fortnite】verse講座#4 Tickないの!?どうやって動かすの??
動画内のスクリプトを掲載しています。
using { /Fortnite.com/Devices }
using { /Verse.org/Simulation }
using { /UnrealEngine.com/Temporary/SpatialMath }
snowman := class(creative_device):
@editable
Prop:creative_prop = creative_prop{}
@editable
Speed:float = 0.5
var Count:int = 0
Tick()<suspends>:void=
loop:
Print("Tick Execute Count : {Count}")
set Count = Count + 1
var t:transform = Prop.GetTransform()
if:
Prop.TeleportTo[t.Translation, t.Rotation.ApplyLocalRotationZ(Speed)]
Sleep(0.0)
OnBegin<override>()<suspends>:void=
spawn{Tick()}
ご質問やご感想はお気軽にコメント欄まで!