. . . Posted April 30, 2019 Share Posted April 30, 2019 (edited) Hello! I was wondering if there's a way to make a certain player prefab not able fill out the map while exploring the world unless you use some code to allow them to. I tried messing around with the "maprevealer" component because I thought for sure that would work by adding this to the character inst.components.maprevealer:Stop() but it didn't seem to do anything, removing the component did nothing either. So, I came here to see if anyone smart knows how to disable/enable the map from being filled out . Thanks for your time ! ps: I am also wondering if there's an event or something to know if the player opened/closed their map because I would like to try making a idle state for holding out a map for a mod. Edited April 30, 2019 by Warbucks Link to comment Share on other sites More sharing options...
CarlZalph Posted April 30, 2019 Share Posted April 30, 2019 The maprevealer component is used by the ocuvigil to update the map at a specific spot. The server calls this when the player dies and no longer reveals new parts of the map: inst.player_classified.MapExplorer:EnableUpdate(false) Then calls it again with the 'true' parameter on revive. Link to comment 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