Jump to content

Tab action


TorNix~|nR

Recommended Posts

I think it's because you activate "action" somewhere again.

Cause if you deactivate "action" the player can't shoot.

Maybe try this:

-- client -- 
local _toggleAllControls = toggleAllControls 
function toggleAllControls ( ... ) 
    local result = _toggleAllControls (... ) 
    toggleControl ( "action", false ) 
    return result 
end 
  
  
-- server -- 
local _toggleAllControls = toggleAllControls 
function toggleAllControls ( ... ) 
    local result = _toggleAllControls (... ) 
    local data = { ... } 
    local player = data[1] 
    if isElement ( player ) then 
        toggleControl ( player, "action", false ) 
    end 
    return result 
end 

That way "action" can't get activated again by toggleAllControls.

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...