Search found 3 matches

by Orion Omega
Tue Apr 01, 2025 5:16 pm
Forum: Lua Legion
Topic: Custom Environment Zones - LUA
Replies: 5
Views: 893

Re: Custom Environment Zones - LUA

Thanks lumiere! I too got down to read the data but could not change it. "cez.temp = 20" all the time but nothing happend :D
by Orion Omega
Tue Mar 25, 2025 6:32 am
Forum: Lua Legion
Topic: Random starting position first tries
Replies: 1
Views: 160

Re: Random starting position first tries

Here the Lua part:

local MySide = VP_GetSide({name = "Friendly"})
local MyZone1 = MySide:getstandardzone("Zone1")
local MyZone2 = MySide:getstandardzone("Zone2")
local MyZone3 = MySide:getstandardzone("Zone3")

--choosing the zone
math.randomseed(os.time())
local r = math.random(1,3)
if r == 1 ...
by Orion Omega
Mon Mar 24, 2025 8:01 pm
Forum: Lua Legion
Topic: Random starting position first tries
Replies: 1
Views: 160

Random starting position first tries

Hi everyone,

I'm dipping my toes into Lua a bit and tried to produce a random location start. Finally I got something to work: 3 preset zones. Somewhere in there my unit will spawn.

My question: how would you have solved this problem?

The zones and the unit are given. Randomly choose a starting ...

Go to advanced search