Hello.

I'm making a small shooting game and i want to make a cheat code. If i press the key w i want to get more ammo.

I dont know what to write and where to put it in the code. This is what i have tried.

void cheat()
{
if (key_w == ON)
{
my.ammo_pickup()
}

}

\\ammo.pickup() is a function in weapons.wdl

I have puted this in the main wdl file. The one with the same name as the game.

I'm using Gamestudio 6.60 PRO and run Windows 7. For scripting im using Script Editor 6.51.2.

Thanks in Advance -Vidar