Support

Adding/Changing a Gear's Velocity- Lua

Hmm. I'm trying to create a gear (in this case a grenade) that moves as if it was thrown, but it doesn't move no matter how high you set the values. I also did a test with one of the hedgehogs, and it just moved up a little and stopped. here's the code I have now:

Quote:
--Reference: AddGear(x, y, gearType, state, dx, dy, timer)
AddGear(x, y, gtAmmo_Grenade, 0, 100, 100, 0)

Lua Help

Hello! I'm trying to make a new training mission and I need some help. I'm trying to change the rope length option so ropes are longer, but I can't figure out what the option is called in Lua.

Also, is there any way to make a hedgehog equip a weapon and fire it? I'm trying to make a short "movie" with the Lua API and I need some of the hedgehogs to attack.

And is there a way to bind keys to actions? For example:

Quote:
function onKeyPress()
if key = "k" then
createACircle (somewhere, red, 5)
wait (5)
deleteACircle (somewhere)
end
end

I know that isn't real code. I'm working on that Smile

Cant play online

Hi, I've been playing HEDGEWARS at home for a while now, I love it, but I can't play online, I can't connect to the official server and I don't know how to find any online players. Can anyone help me?

Can't connect to official server

Hi there !

I try to connect to the official server but I get the following message : Connection to server is lost

Quit reason: "Connection refused"

Thank you
VHAlex

Someone is online with my Nick, but why?

At the moment someone is online with "Kookii". it is possible without my password? i'm confused

Syndicate content

User login

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