Jump to content

Moogle vision on key press.


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)

 

Link to comment
Share on other sites

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
 Share

×
  • Create New...