Add include()
This commit is contained in:
@@ -3,4 +3,5 @@
|
||||
# This software is released under the MIT License.
|
||||
# https://opensource.org/licenses/MIT
|
||||
|
||||
add_asset(SCRIPT test.lua)
|
||||
add_asset(SCRIPT test.lua)
|
||||
add_asset(SCRIPT test2.lua)
|
||||
@@ -1,3 +1,5 @@
|
||||
include('script/test2')
|
||||
|
||||
player = entityAdd(ENTITY_TYPE_PLAYER, 3, 6, 1)
|
||||
|
||||
print("Player entity ID: " .. player)
|
||||
1
assets/script/test2.lua
Normal file
1
assets/script/test2.lua
Normal file
@@ -0,0 +1 @@
|
||||
print("This is test2.lua")
|
||||
Reference in New Issue
Block a user