|
0 registered members (),
631
guests, and 2
spiders. |
|
Key:
Admin,
Global Mod,
Mod
|
|
|
Re: How to add variables to a Entity?
[Re: NoDawn]
#179136
01/22/08 10:29
01/22/08 10:29
|
Joined: Jul 2001
Posts: 6,904
HeelX
Senior Expert
|
Senior Expert
Joined: Jul 2001
Posts: 6,904
|
Just make a struct like this: Code:
typedef struct SKILLS { int values[256]; } SKILLS;
create it and save it's pointer (casted via long) into one skill. Later, you can retrieve it by making a pointer of its type (SKILL*) and cast the content of that skill into it. Then you can access easily your self defined skills.
|
|
|
Re: How to add variables to a Entity?
[Re: xXxGuitar511]
#179138
01/23/08 03:14
01/23/08 03:14
|
Joined: Aug 2004
Posts: 1,305 New York
PrenceOfDarkness
Serious User
|
Serious User
Joined: Aug 2004
Posts: 1,305
New York
|
wait so i can do for example...
var counter = 1; while(counter <= 100) { wait(1); my.skill[counter] += 10; counter++; }
?
"There is no problem that can't be solved with time and determination." -me prenceofdarkness for instant messages on AIM.
Looking for a model designer PLEASE, SEND ME A PRIVATE MESSAGE OR EMAIL IF YOU'RE INTERESTED.
|
|
|
|