D1v1ne122 Posted July 30, 2016 Author Share Posted July 30, 2016 (edited) For right now I've tried to simply attach it to the player actor as an actor script. So far it seems to be going alright but I've run into a snag. Trying to create a function that returns whether an actor is in a worldspace. I've been comparing against the keyword LocTypeWorld, should i be checking against the parent or will this be sufficent? Bool Function isInWorldSpace(Location akLocation, Bool PlayerLoc) If PlayerLoc == true Loc = game.GetPlayer().GetCurrentLocation() isWorldSpace = Loc.isLinkedLocation(Commonwealth , LocTypeWorld) Else isWorldSpace = akLocation.isLinkedLocation(Commonwealth , LocTypeWorld) EndIf return isWorldSpace EndFunction Edited July 31, 2016 by D1v1ne122 Link to comment Share on other sites More sharing options...
Recommended Posts