Background for Fallout 4
Member of the ObjectReference script
voidfunctionSetLocRefType(LocationakLoc, LocationRefTypeakRefType)Native

Description

Wiki Description

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

Documentation Comment

Sets the an in-game created reference to have the given loc ref type for the given location


Parameters

  1. LocationakLoc

    CK Wiki Description

    Location to set the ref as the ref type in

  2. LocationRefTypeakRefType

    CK Wiki Description

    RefType to set the ref as or None to clear an already set ref type on a created ref


Examples

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

Auto-Generated Example

Location myLocation__akLoc
LocationRefType myLocationRefType__akRefType

myObjectReference__toCallFunctionOn.SetLocRefType(myLocation__akLoc, myLocationRefType__akRefType)

Related Pages


Additional References

View this function’s page on the Fallout 4 Creation Kit Wiki

Some data provided by the Fallout 4 Creation Kit Wiki. Licensed under the Creative Commons Attribution-Share Alike 4.0 license.