Glaudeo Posted July 12, 2020 Share Posted July 12, 2020 (edited) I want to make a character who will be not allowed to ride any rideable things. So, I made a function in my prefab file: local function NoMount(inst, target) if target and target.components.rideable then inst:PushEvent("refusedmount", {rider=inst,rideable=target}) target:PushEvent("refusedrider", {rider=inst,rideable=target}) end endBut nothing works. What is wrong? Edited July 12, 2020 by Glaudeo Link to comment https://forums.kleientertainment.com/forums/topic/120002-making-character-not-allowed-to-ride-anything/ Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now