Hi guys.
I'm working with WED and t_shooter_temples. made a second level called WepChoppe were character can load into and collect/buy weapons. When WepShoppe loads with or without a weapon I don't want any entities to show as equipped, now when player enters WepShope with out weapon it looks good no entities equipped.
But as soon as player collects weapon, weapon does not get equipped but random entity gets equipped as weapon like random box or plant and they act as working weapon(shoots etc.). When player returns to main level all that player has collected in WepShoppe, entities weapons do show as equipped as it should. How can I fix second level(WepShoppe).

I tried calling the code that unequips weapons from t_shooter_weapons.c and I found out that I don't know how to call it.

Code:
{
t_shooter_pistol.flags2 &= ~SHOW; // then hide the pistol entity
t_shooter_machinegun.flags2 &= ~SHOW; // hide the machine gun entity
t_shooter_crosshair_pan.flags &= ~SHOW; // hide the crosshair
t_shooter_snipergun.flags2 &= ~SHOW; // hide the sniper gun
}



Please help:)


Honesty will get you far, were dishonesty will get you only so far in life.