
Posts
282
Respect
51Add +1
Forum Rank
Mr. Elemental
Primary Group
Member
Login Issues
Forgot password?Activate Issues
Account activation email not received? Wrong account activation email used?Other Problems?
Contact Support - Help Center Get help on the UGX Discord. Join it now!level.zombie_include_weapons["weapon_name"] = true;
thread maps\dlc3_code::include_weapons("weapon_name", true);
addEEWeaonToBoxOnOwnerDeath( weapon ) {
self waittill_any( "death", "disconnect", "player_died" );
level.zombie_include_weapons[ weapon ] = true;
level.zombie_weapons[ weapon ].is_in_box = true;
}
include_weapon( "weapon_name", false );
I created a function for something similar, but it works when the player dies. Just change the waittill with your notify:And you have to include the weapon in dlc3_code.gsc first like this: Code SnippetPlaintextaddEEWeaonToBoxOnOwnerDeath( weapon ) {
self waittill_any( "death", "disconnect", "player_died" );
level.zombie_include_weapons[ weapon ] = true;
level.zombie_weapons[ weapon ].is_in_box = true;
}It works for me so it should work for you too. Code SnippetPlaintextinclude_weapon( "weapon_name", false );