I assume thats a member variable of the weapon_frag class, so you would need an instance of that to access the variable.
You could simply put another bool fThrewGrenade into grenade_frag and then set that when you throw the grenade? Garry Newman wrote: > extern is a generic c++ thing.. it just means the variable is defined > somewhere else. > > garry > > On Tue, Nov 11, 2008 at 12:45 PM, Yorg Kuijs <[EMAIL PROTECTED]> wrote: > >> Hey list, >> >> have been fiddling with trying to get the bool fThrewGrenade from >> weapon_frag to grenade_frag using extern bool >> but whatever I try I can't seem to get it to work, can't find anything >> about externs and searched through the code for examples and it seems it >> can be done in a ton of ways but what I'm trying just doesn't work >> either I get unresolved external error, or I include weapon_frag.h and >> then I get 4 errors in weapon_ar2.h which are rather weird... >> >> so anybody know where to find more information about external variables? >> >> _______________________________________________ >> To unsubscribe, edit your list preferences, or view the list archives, >> please visit: >> http://list.valvesoftware.com/mailman/listinfo/hlcoders >> >> >> > > _______________________________________________ > To unsubscribe, edit your list preferences, or view the list archives, please > visit: > http://list.valvesoftware.com/mailman/listinfo/hlcoders > > > _______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders