#Different stats from enemies

1 messages · Page 1 of 1 (latest)

manic junco
#

hello

ivory sphinx
#

okay show me your stat script

manic junco
cold needle
#

That's not a SO

manic junco
#

yes iik

#

ive had it as one

ivory sphinx
manic junco
#

ok one sec

ivory sphinx
#

Now make the scriptableobject. from Project.

#

and assign than to each enemy you have

manic junco
#

wdym by tht just make a script tht can hold the values from the so?

#

ive made 2 stats so

ivory sphinx
#

you only need 1 stats.

manic junco
#

ye ik i need on like script to make the so but how would i call it on a damageplayer script

ivory sphinx
#

you can either use Serialize or GetComponent like you did before.

manic junco
#

so the prob i was having with so was the values wouldnt change from enemy to enemy

#

so say id hit enemy 1 woith a dmg of 5. then id hit enemy 2 whos value is supposed to be 10 but it just uses the first enemys values

ivory sphinx
manic junco
#

...

#

i have 2 sos lool

ivory sphinx
#

just like i did...

manic junco
ivory sphinx
cold needle
#

Make an SO for stats, then make it visible in menu so u can create variants of enemy stats

ivory sphinx
ivory sphinx
#

or just add a new tag. for example Enemy2

manic junco
ivory sphinx
#

errrm.. i think it's better to Serilize it use [SerializeField] private Stats enemyOne;