ScarDoc

Start typing to search the SCAR reference.

Function
Prefab

Prefab_DoAction

Calls an action function with a given name on an instance, making sure it calls the right version for the type of Prefab. Instance can be a string, this will convert it.

On this page
Prefab_DoAction(instance_data, actionName, param1, param2...)

Description

Example: Calling the \"Trigger\" action on an instance that is a PlaneCrash prefab will look for a function called \"PlaneCrash_Trigger\"

Parameters

  • instance_dataTable/Stringrequired
  • actionNameStringrequired
  • param1Varoptional
  • param2...Varoptional

Returns

Unknown

Source

Declared in the game's script sources at:

scar/prefabs.scar