SetLocRefType - ObjectReference

From the Fallout4 CreationKit Wiki
Jump to navigation Jump to search

Member of: ObjectReference Script

Sets an in-game created object to be the given loc ref type for the given location.

Syntax[edit | edit source]

Function SetLocRefType(Location akLoc, LocationRefType akRefType)

Parameters[edit | edit source]

  • akLoc: Location to set the ref as the ref type in
  • akRefType: RefType to set the ref as or None to clear an already set ref type on a created ref

Return Value[edit | edit source]

None

Examples[edit | edit source]

;Create a new boss for a dungeon
TestBossRef = TestLocCenterRef.PlaceAtMe( TestActorBase )
TestBossRef.SetLocRefType( TestLoc, Boss )


See Also[edit | edit source]