Defining Entities

Posted By: bk9iq

Defining Entities - 07/16/10 23:22

Hello all,
I am attaching the same action to about 10 boxes ...
I am giving the box an entity name "box"
However only the first box is getting the name "box" ...
when I am using if you == ball and then some action, only the first box is affected...
How can I make the name "box" as if it is for all the boxes
Quote:

ENTITY* box;
action move_box()
{
box = me;
.....
}




Posted By: Lukas

Re: Defining Entities - 07/16/10 23:39

action move_box()
{
ENTITY* box;
box = me;
.....
}

-OR, much easer:-
#define box me
Posted By: bk9iq

Re: Defining Entities - 07/16/10 23:44

The second way worked..... Thank u very much ...
© 2024 lite-C Forums