entity skills with indices ?

Posted By: zazang

entity skills with indices ? - 04/23/08 06:24

Hi

Sorry if its already discussed somewhere,but is there a way to access entity skills using indices.

For example :-

var index = 1;
my.skill[index] = 10;//instead of my.skill1 = 10;

regards
zazang
Posted By: Uhrwerk

Re: entity skills with indices ? - 04/23/08 09:48

Of course. That's the way you always access entity skills. "skill1", "skill2" etc. are only #defines for "skill[0]", skill[1] etc.
Posted By: zazang

Re: entity skills with indices ? - 04/23/08 16:07

wow thanks !
© 2023 lite-C Forums