a request

a request

Discuss Lua based Spring scripts (LuaUI widgets, mission scripts, gaia scripts, mod-rules scripts, scripted keybindings, etc...)

Moderator: Moderators

Post Reply
daan 79

a request

Post by daan 79 »

maybe could soemone make a thingy i can move features on a map i asked around a bit for it
User avatar
smoth
Posts: 22309
Joined: 13 Jan 2005, 00:46

Re: a request

Post by smoth »

clarify daan, it is a wee bit hard to understand.
daan 79

Re: a request

Post 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
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Re: a request

Post 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.
User avatar
Jazcash
Posts: 5309
Joined: 08 Dec 2007, 17:39

Re: a request

Post by Jazcash »

AF wrote:english speaking nerd.
Don't make me come over there.
User avatar
TheFatController
Balanced Annihilation Developer
Posts: 1177
Joined: 10 Dec 2006, 18:46

Re: a request

Post 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
daan 79

Re: a request

Post by daan 79 »

Yeeha.

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

Return to “Lua Scripts”