Actor *... ?
Posted:
Sat Jun 07, 2008 3:20 pm
by asmodeus
I often see "Actor *" in scipts. What does it do?
Re: Actor *... ?
Posted:
Sat Jun 07, 2008 4:16 pm
by DarkParadox
well, actor is mostly used in global codes.
such as
void function(Actor*MyActor , int X)
{
Actor->x = X;
}
in this case if you put &player the actor named player will have its x changed to whatever you put for X;
get it?