Apartment Interior: Difference between revisions

From Onset Developer Wiki
Created page with " Prefab 01a without furniture. <pre>/Game/Geometry/Prefabs/PF_Apartment_01a</pre> Prefab 01b with furniture as seen in the pictures below. <pre>/Game/Geometry/Prefabs/PF_Ap..."
 
m BlueMountains moved page Apartments to Apartment Interior without leaving a redirect
 
(One intermediate revision by the same user not shown)
Line 16: Line 16:
GetWorld():SpawnActor(UClass.LoadFromAsset(BlueprintClass), Location, Rotation)
GetWorld():SpawnActor(UClass.LoadFromAsset(BlueprintClass), Location, Rotation)
</syntaxhighlight>
</syntaxhighlight>
[[File:Apartment01.jpg|1000px]]
[[File:Apartment02.jpg|1000px]]
[[File:Apartment03.jpg|1000px]]
[[File:Apartment04.jpg|1000px]]

Latest revision as of 20:25, 11 January 2021

Prefab 01a without furniture.

/Game/Geometry/Prefabs/PF_Apartment_01a

Prefab 01b with furniture as seen in the pictures below.

/Game/Geometry/Prefabs/PF_Apartment_01b

Spawning the apartment interior from Lua.

local BlueprintClass = "/Game/Geometry/Prefabs/PF_Apartment_01b"
local Location = FVector(0.0, 0.0, 0.0)
local Rotation = FRotator(0.0, 0.0, 0.0)
GetWorld():SpawnActor(UClass.LoadFromAsset(BlueprintClass), Location, Rotation)