-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed PhysicsGun minor bugs; Fixed Spawn rotation when reloading package;
- Loading branch information
Showing
9 changed files
with
37 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
function SpawnDestructable(location, rotation, asset) | ||
-- Spawns Destructable | ||
local static_mesh = StaticMesh((location or Vector()) + Vector(0, 0, 70), (rotation or Rotator()) + Rotator(0, 90, 0), asset) | ||
return static_mesh | ||
end | ||
|
||
|
||
-- Adds this to the Sandbox Spawn Menu | ||
AddSpawnMenuItem("nanos-world", "entities", "GC_Ball", function(location, rotation) return SpawnDestructable(location, rotation, "NanosWorld/Props/VRShapes/GC_Ball") end) | ||
AddSpawnMenuItem("nanos-world", "entities", "GC_Cube_01", function(location, rotation) return SpawnDestructable(location, rotation, "NanosWorld/Props/VRShapes/GC_Cube_01") end) | ||
AddSpawnMenuItem("nanos-world", "entities", "GC_Cube_02", function(location, rotation) return SpawnDestructable(location, rotation, "NanosWorld/Props/VRShapes/GC_Cube_02") end) | ||
AddSpawnMenuItem("nanos-world", "entities", "GC_Cube_03", function(location, rotation) return SpawnDestructable(location, rotation, "NanosWorld/Props/VRShapes/GC_Cube_03") end) | ||
AddSpawnMenuItem("nanos-world", "entities", "GC_Pyramid", function(location, rotation) return SpawnDestructable(location, rotation, "NanosWorld/Props/VRShapes/GC_Pyramid") end) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters