Background for Fallout 4
Member of the ScriptObject script
boolfunctionIsBoundGameObjectAvailable()Native

Description

Wiki Description

Returns whether this script is attached to a valid and available in-game object. If it returns false, then calling native functions from one of the ScriptObject-extended scripts (like Form, or Alias, or ActiveMagicEffect) will immediately fail because it has no in-game object to operate on. The most common cases of this happening would be a magic effect that has expired, or a reference that is stored in a container.

Documentation Comment

Returns true if this object is attached to an in-game object and that object
is available to be operated on. If this returns false then any form, alias,
or active magic effect native functions will most likely fail.


Examples

; Make sure we have a reference to manipulate before we try to do so
if MyScriptObject.IsBoundGameObjectAvailable()
  ; Do cool stuff with MyScriptObject here, as it is available to be manipulated
endIf

Auto-Generated Example

bool returnedValue = myScriptObject__toCallFunctionOn.IsBoundGameObjectAvailable()

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.