PDA

View Full Version : //Weapons. Use with npc->Weapon



ShadowMancer
08-02-2007, 08:44 PM
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. :confused:

pkmnfrk
08-03-2007, 07:42 AM
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"

ShadowMancer
08-03-2007, 12:50 PM
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.

DarkDragon
08-03-2007, 02:03 PM
Post 2.5.