Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » just wondering : weaponbagclass
just wondering : weaponbagclass [message #464285] Mon, 12 March 2012 05:47 Go to previous message
robbyke is currently offline  robbyke
Messages: 348
Registered: September 2010
Location: Belgium
Karma:
Recruit
it has some functions to give weapons with weapons names instead of powerups

WeaponClass * Add_Weapon( const WeaponDefinitionClass * def, int rounds = 0, bool give_weapon = true );
WeaponClass * Add_Weapon( int id, int rounds = 0, bool give_weapon = true );
WeaponClass * Add_Weapon( const char *weapon_name, int rounds = 0, bool give_weapon = true );

now im just a coding newby but is it possible to use it because what i have tried gives a linking error

void KB_Give_Weapon(GameObject *obj,const char *Weapon)
{
	WeaponBagClass *Gun= ((ArmedGameObj *)obj)->Get_Weapon_Bag();
	Gun->Add_Weapon(Weapon,0,true);
}



Error 2 error LNK2001: unresolved external symbol "public: class WeaponClass * __thiscall WeaponBagClass::Add_Weapon(char const *,int,bool)" (?Add_Weapon@WeaponBagClass@@QAEPAVWeaponClass@@PBDH_N@Z) C:\Users\robby\Desktop\source test\Kambot\KB_Functions.obj Kambot


Owner of kambot TT server

kambot.freeforums.org
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: LevelEdit Scripts after beta 4 update
Next Topic: Issue with converting a facing to a Vector3.Z value to look at
Goto Forum:
  


Current Time: Thu Dec 19 21:48:49 MST 2024

Total time taken to generate the page: 0.00902 seconds