Need to make actor unable to pick up or drop weapons
Code:
--Can't Pickup Stuff
if self:GetController():IsState(Controller.WEAPON_PICKUP) then
self:GetController():SetState(Controller.WEAPON_PICKUP,false);
--Can't Drop Stuff
elseif self:GetController():IsState(Controller.WEAPON_DROP) then
self:GetController():SetState(Controller.WEAPON_DROP,false);
end
I can't get it to work, my actor still is able to pick up and drop weapons, any help please?