creation of girders using lua

2 replies [Last post]
Falke3
User offline. Last seen 13 years 11 weeks ago. Offline
Joined: 2011-01-21
Posts: 3

Is it possible to create girders using a lua script?
I've tried several things like AddGear(x,y,gtGirder,0,0,0,0) or 24 as geartype. But it didn't work Sad Smiley

Does anyone know if it is possible - and how?

sheepluva
sheepluva's picture
User offline. Last seen 5 weeks 1 day ago. Offline
Joined: 2009-07-18
Posts: 563

Falke3 allegedly wrote:

Is it possible to create girders using a lua script?
I've tried several things like AddGear(x,y,gtGirder,0,0,0,0) or 24 as geartype. But it didn't work Sad Smiley

Does anyone know if it is possible - and how?

nemo(irc) allegedly wrote:

[...] the answer is "no, not yet, but next version"

Sorry pal Annoyed

  sheepluva <- me  my code stats -> 
a Hedgewars Developer


   <- where I'm from  what I speak -> 

Henek
Henek's picture
User offline. Last seen 6 years 29 weeks ago. Offline
Joined: 2010-04-06
Posts: 55

I have added support for placing girders using lua. It will be included in the next version but if you want to test it now you can make a development build (or update if you already have one).
More details on using PlaceGirder can be found here: http://code.google.com/p/hedgewars/wiki/LuaAPI

One of those hedgewars developers. I am specially knowledgeable in lua scripting, and the father of gameplay scripts.

User login

Copyright © 2004-2024 Hedgewars Project. All rights reserved. [ contact ]