Hi, I am spawning a floating prop the moves around my island on a loop in verse, I just want to make it indestructible, thanks!
Also I am new to verse so any advice is appreciated, I have no clue how or why this code is working, the rotation angles seem incredibly off, but the way it is works for me currently.
Also, I asked this question already and then edited the section it was in, but it wasn’t showing up on the forums so I deleted the other post.
using { /Fortnite.com/Devices }
using { /Fortnite.com/Devices/CreativeAnimation }
using { /Verse.org/Native }
using { /Verse.org/Simulation }
using { /Verse.org/Simulation/Tags }
using { /UnrealEngine.com/Temporary/Diagnostics }
using { /UnrealEngine.com/Temporary/SpatialMath }
boat := class(creative_device):
@editable
CreativeProp: creative_prop_asset := DefaultCreativePropAsset
# Runs when the device is started in a running game
OnBegin<override>()<suspends>:void=
SpawnedProp := SpawnProp(CreativeProp, vector3{X:=-2560.0, Y:=-512.0, Z:=-100.0}, IdentityRotation().ApplyLocalRotationZ(-69.9))
Prop := SpawnedProp(0)
if (BoatProp := Prop?):
spawn { PrintPropLocation(BoatProp) }
loop:
BoatProp.MoveTo(vector3{X:=256.0, Y:=576.0, Z:=-100.0}, IdentityRotation().ApplyLocalRotationZ(-90.0), 5.0)
BoatProp.MoveTo(vector3{X:=2048.0, Y:=-1024.0, Z:=-100.0}, IdentityRotation().ApplyLocalRotationZ(-110.0), 5.0)
BoatProp.MoveTo(vector3{X:=320.0, Y:=-3136.0, Z:=-100.0}, IdentityRotation().ApplyLocalRotationZ(-30.1), 10.0)
BoatProp.MoveTo(vector3{X:=-7616.0, Y:=-3840.0, Z:=-100.0}, IdentityRotation().ApplyLocalRotationZ(-30.1), 9.0)
BoatProp.MoveTo(vector3{X:=-7616.0, Y:=-3840.0, Z:=-100.0}, IdentityRotation().ApplyLocalRotationZ(-110.0), 7.0)
BoatProp.MoveTo(vector3{X:=-8832.0, Y:=-6656.0, Z:=-100.0}, IdentityRotation().ApplyLocalRotationZ(-90.0), 10.0)
BoatProp.MoveTo(vector3{X:=-6272.0, Y:=-8576.0, Z:=-100.0}, IdentityRotation().ApplyLocalRotationZ(-69.9), 5.0)
BoatProp.MoveTo(vector3{X:=-2560.0, Y:=-512.0, Z:=-100.0}, IdentityRotation().ApplyLocalRotationZ(-69.9), 20.0)
PrintPropLocation(Prop:creative_prop)<suspends>:void=
loop:
#Print("Prop Location: {(Prop.GetTransform().Rotation)}")
Sleep(1.5)