Actor *... ?

Game Editor comments and discussion.

Actor *... ?

Postby asmodeus » Sat Jun 07, 2008 3:20 pm

I often see "Actor *" in scipts. What does it do?
User avatar
asmodeus
 
Posts: 483
Joined: Thu Oct 11, 2007 5:04 pm
Location: Germany
Score: 43 Give a positive score

Re: Actor *... ?

Postby DarkParadox » Sat Jun 07, 2008 4:16 pm

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?
User avatar
DarkParadox
 
Posts: 457
Joined: Mon Jan 08, 2007 11:32 pm
Location: USA, Florida.
Score: 84 Give a positive score


Return to GE - General

Who is online

Users browsing this forum: No registered users and 1 guest

cron