hi.
i need some help on this problem please.
i will apreciatte so much…
I have 3 or more different kind of enemies runing
and they randomly choose their own path.
and I need to instantiate a prefab, OnTriggerEnter
accord which enemy choose which trigger.
for example…
if green enemy choose trigger 1, … then
Instantiate (prefab_1, …);
but what if the same green enemy choose trigger 2, … then
Instantiate (prefab_2, …);
or if he choose trigger 3, then
Instantiate (prefab_3, …);
my specific problem is the script structure inside the trigger, or inside on any enemy.
choose a trigger RANDOMLY and clone an SPECIFIC prefab
any idea please ?
really i will apreciatte so much any kind of help with this… ![]()
how goes the script structure…
.
