UnderwearApp Posted March 24, 2014 Share Posted March 24, 2014 (edited) I am looking for a simple way to determine whether the player is in overworld, caves, or ruins. The only function that I have found is GetGroundType() using all available types. Anyone know an easier way of doing this? Thanks in advance, Prof Edited March 24, 2014 by ProfFarnsworth Link to comment https://forums.kleientertainment.com/forums/topic/33459-more-reliable-way-to-identify-location-than-getgroundtype/ Share on other sites More sharing options...
debugman18 Posted March 24, 2014 Share Posted March 24, 2014 Off the top of my head, I think doing something like GetWorld():HasTag("cave") or GetWorld().prefab == cave would do the trick. Link to comment https://forums.kleientertainment.com/forums/topic/33459-more-reliable-way-to-identify-location-than-getgroundtype/#findComment-436905 Share on other sites More sharing options...
squeek Posted March 24, 2014 Share Posted March 24, 2014 (edited) As debugman18 said,To check if in cave:GetWorld().prefab == "cave"orGetWorld():HasTag("cave")To check if in ruins (note: the above checks also evaluate to true while in the ruins):GetWorld():HasTag("ruin")To check if in overworld:GetWorld().prefab == "forest"ornot GetWorld():HasTag("cave") Edited March 24, 2014 by squeek Link to comment https://forums.kleientertainment.com/forums/topic/33459-more-reliable-way-to-identify-location-than-getgroundtype/#findComment-436908 Share on other sites More sharing options...
UnderwearApp Posted March 24, 2014 Author Share Posted March 24, 2014 Tags man, i don't use tags enough. Thanks both of you, I appreciate the help. Link to comment https://forums.kleientertainment.com/forums/topic/33459-more-reliable-way-to-identify-location-than-getgroundtype/#findComment-437060 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