Skip to content

Commit 9861dd8

Browse files
committed
Tutorial
1 parent 96b34ba commit 9861dd8

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

TUTORIAL.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ local Player = Players.LocalPlayer
1414
local Character = Player.Character
1515

1616
local ECS = require(game.ReplicatedStorage:WaitForChild("ECS"))
17+
local ECSUtil = require(game.ReplicatedStorage:WaitForChild("ECSUtil"))
1718

1819
-- Our weapon
1920
local rightHand = Character:WaitForChild("RightHand")
@@ -56,6 +57,7 @@ In the script above, before the creation of our weapon, we will define our ECS w
5657

5758
```lua
5859
local world = ECS.newWorld()
60+
ECSUtil.AddDefaultSystems(world)
5961

6062

6163
local bulletSpawnEntity = ECSUtil.NewBasePartEntity(world, BulletSpawnPart, true, false)

docs/tutorial.rbxl

7.22 KB
Binary file not shown.

0 commit comments

Comments
 (0)