Read-only archive of the Armageddon Games Forums Archive (2000–2026) · About this archive

//Weapons. Use with npc->Weapon

3 replies · 2,432 views · Started 03 August 2007

Question, what can these constants be used for

const int WPN_SWORD = 1;
const int WPN_BEAM = 2;
const int WPN_BRANG = 3;
const int WPN_BOMB = 4;
const int WPN_SBOMB = 5;
etc..

these are Link's weapons if I am not mistaken. So what can you do with them, I know that Link's onscreen weapons cannot be affected via script(yet). I've been reading the std_zh and the zscript.txt and trying to find out what every function / constant does, can't figure this one out. 😕

I think they added them for later use. (hopefully not too much later)

Edit: Or, just do what the comment says, and "Use with npc->Weapon"

ok thanks, i kind of figured they were for latter use. As for the comment Use with npc->Weapon, the first few in the list (Link's weapons) probley do not work for enemys, as enemys have their own list of weapons. And yes I also hope they can be used soon, I know DD was talking about adding functionality to zscript to effect spawned weapons / enemy weapons, but I am not sure if that is pre or post stable 2.5 now.