Jump to content

Recommended Posts

It requires RPC to prevent dark damages, you can see other posts for that.

To add key handler on client, use

TheInput:AddKeyDownHandler(KEY_Z, function()

    --following code will only provide moggle vision on client, do these on server with RPC call to stop charlie attack.

    local v=ThePlayer.components.playervision

    v:ForceNightVision(not v.forcenightvision)

end)

 

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
×
  • Create New...