I have some PrefabbedActionLists.asset that I'd really need to call from PlayMaker, due to it being an asset and not a gameobject i cannot specify it to "SendMessage", so how would I call these?
To call an asset through PlayMaker, you'd have to create an intermediate. Either send "Interact" to a scene-based Cutscene that merely has the Engine: Run ActionList Action that's set to run the asset, or call a function within a custom script.
The following line of code would run an asset stored in the assetToRun variable:
AdvGame.RunActionListAsset (assetToRun);
So, placing that in a function called RunAsset and declaring the variable, you'd then be able to send "RunAsset" to a GameObject with it attached to run the asset.
Comments
The following line of code would run an asset stored in the assetToRun variable:
AdvGame.RunActionListAsset (assetToRun);
So, placing that in a function called RunAsset and declaring the variable, you'd then be able to send "RunAsset" to a GameObject with it attached to run the asset.