Page 1 of 1

a request

Posted: 29 Sep 2008, 23:42
by daan 79
maybe could soemone make a thingy i can move features on a map i asked around a bit for it

Re: a request

Posted: 30 Sep 2008, 02:18
by smoth
clarify daan, it is a wee bit hard to understand.

Re: a request

Posted: 30 Sep 2008, 05:01
by daan 79
Uhm i got a notion that with a bit of lua main.lua and some lines. Maybe gaia lua in the map folder bedore 7zippin it could make features move. Since i planning of having some nnostatic resources(features) i was hoping someone could help me out with this

Re: a request

Posted: 30 Sep 2008, 15:05
by AF
I vs i
, vs <no ,>
. vs <no .>

You really need to sepraate things out in sentences! Do not try and say more than one thing in a single sentence if you can help ti either and always end a sentence in a full stop. Use commas when appropriate. Follow these simple rules and you should be much easier to understand to the average english speaking nerd.

Re: a request

Posted: 30 Sep 2008, 17:37
by Jazcash
AF wrote:english speaking nerd.
Don't make me come over there.

Re: a request

Posted: 30 Sep 2008, 18:47
by TheFatController
i'm just writing this out in phpbb and havent tested it but i think it does what you want

Code: Select all

function gadget:GameFrame(n)
  local featureList = Spring.GetAllFeatures
  for _,featureID in pairs(featureList) do
     Spring.SetFeaturePosition(featureID, math.random(1,Game.mapSizeX-1),0,math.random(1,Game.mapSizeZ-1))
  end
end

Re: a request

Posted: 30 Sep 2008, 21:01
by daan 79
Yeeha.

in return, i write a point at the end of the sentence.