My Script only plays the animations I referenced on the first Object. I already tried to change the objects names but it still only played the animation on soulbox_mystic_1. All Prefabs and entitys are perfect! Maybe I forgot something in the APE.
Here is my script:
This is inside a function that checks if a zombie is inside a trigger-radius! PLS HELP ME
My Script only plays the animations I referenced on the first Object. I already tried to change the objects names but it still only played the animation on soulbox_mystic_1. All Prefabs and entitys are perfect! Maybe I forgot something in the APE.
Here is my script:
This is inside a function that checks if a zombie is inside a trigger-radius! PLS HELP ME
You could get an array for the boxes(getentarray) and then thread the function on each one using "for"
If they are the same thing, and the same rules apply, then you want to use arrays, like said, and thread one function that handles them. Using different ones for each can get ugly and confusing. For example:
To further the easy and efficiency of your scripting and mapping and dynamic abilities of your system, you can make things the target of things using w. This will give you the ability to make one prefab and copy it around, applying the same functions to them all, without changing anything. For example, if you make the soulbox_mystic the autotarget of the area:
From there you don't want to use level vars for this box, you want to use vars for the box itself, but probably put in the area object instead, since that is what started it all, and will allow you to thread more functions on it and check these vars then.
This may or may not be your approach but is an example of isolating your script to radiant relationship to reusing repeated actions.
Last Edit: November 03, 2016, 01:05:43 pm by MakeCents