PlayMaker Feedback > Action Requests
Using Variables in Destroy Objects Action[SOLVED]
Farwest:
Hi!
I am using GameObjects as variables in my project. And I need to use "Destroy Objects" action (downloaded from Ecosystem), but I am unable to use variables, instead I need to choose manually.
If I use "Destroy Object" action, I need to duplicate the action a lot, which is very time consuming and flooding the State browser very much. Destroy Objects will make this action in a tidy way.
If you can make DestroyObjects with variables, same as "Destroy Object" action, I will appreciate greatly! Thanks!
jeanfabre:
Hi,
what you need to do is create an FsmArray, populate that array, and then use that array directly, like so:
Bye,
Jean
Farwest:
Hi jeanfabre!
If you had added any image or schema in your message ( ":" ), it seems it doesn't appear.
I am a designer who purely depend on Playmaker and I am not good at modifying scripts much.
As this is "Action Requests" thread, I will appreciate very much if you can provide such array or guide me doing that. Thanks!
jeanfabre:
hi,
The action works as you intended, but I think you are getting confused by the principle of operation.
1: create an FsmArray of type GameObjects
2: set the content of the array, either during editing, or at runtime in your fsm logic to populate the list to all the GameObject you want to destroy
3: reference that FsmArray in your destroy action.
Let me know if that doesn't help.
Bye,
Jean
Farwest:
Sorry, that is not what I am looking for. I was looking for something easier and tidier to destroy, such as the picture I gave example (I made action request for this purpose eventually), additionally I mentioned I am not good at script editing.
Thanks. Bye.
Navigation
[0] Message Index
[#] Next page
Go to full version