Re: AB = CreateHDFirearm?
the problem is, i want a good and clear sign that sais: ammo box. so people will notice that they can get ammo. I’ve made the code on a way that the box explodes when going near it, a message shows up and ammo is added to your inventory.
it works really well, apart from the fact that the game crashes after 1 time CTRL + R (its 1 time now...)
I’m going to try to find a way around this (if it is possible to link normal code objects to Lua code).
im all open for any other suggestions, if somebody has some.
---edit
found it!
there is actualy a code in zombiecave.lua that sais:
Code:
self.Generator1 = CreateAEmitter("Zombie Generator");
self.Generator1.Pos = Vector(339, 219);
self.Generator1.Team = self.CPUTeam;
self.Generator1:EnableEmission(false);
MovableMan:AddParticle(self.Generator1);
in wich i use the Team and AddParticle, wich works perfectly