Eufloria > Eufloria Classic Mods
Lua scripting in Eufloria - reference
annikk.exe:
Yes.
roidstrength = GetAsteroid(x).attribs.strength
For example :>
".attribs.strength" should work for other entities too. And of course you can call energy and speed, not just strength.
Aino:
God -.- I have been close though, cause Lua is case sensitive?
annikk.exe:
Hmm, not sure.. :>
Aino:
not working :/ Better check it closeluy then...
--- Code: ---if GetAsteroid(i).attribs.energy > HighestEnergy then
HighestEnergy = GetAsteroid(i).attribs.energy
end
--- End code ---
I get the error: invalid arguments to method call, the function is the AI... and I suspect the attrib part to be the fault...
Aino:
Solved I think, I saw an error though, I was calling i when it wasn't in a for loop or the variable i was existing :) Changing now :D
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version