Jump to content

Call a Property from an Object - Scripting Help


Recommended Posts

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 by D1v1ne122
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...