-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.lua
More file actions
35 lines (35 loc) · 904 Bytes
/
main.lua
File metadata and controls
35 lines (35 loc) · 904 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
function OnInit()
Script.ReloadScript("scripts/common.lua")
Script.ReloadScript("scripts/entities/actor/BasicActor.lua")
Script.ReloadScript("scripts/Tweaks.lua")
end
function OnShutdown()
end
function PreloadForStats()
Script.ReloadScript("scripts/gamerules/powerstruggle.lua")
local params = {
position = {
x = 0,
y = 0,
z = 0
}
}
local properties = {}
for i, v in pairs(PowerStruggle.buyList) do
if v.class then
params.class = v.class
if v.vehicle and v.modification then
params.properties = properties
properties.Modification = v.modification
else
params.properties = nil
end
System.SpawnEntity(params)
params.position.y = params.position.y + 40
if params.position.y > 4000 then
params.position.y = 0
params.position.x = params.position.x + 40
end
end
end
end