Page 1 of 1

CreateActor return actor pointer

PostPosted: Sat Mar 08, 2014 2:46 am
by CrackedP0t
It would be very useful to make the CreateActor() function return a pointer to the actor it created, so
Actor * example = CreateActor("example", "icon", "(none)", "(none)", 0, 0, true);
would work.

Re: CreateActor return actor pointer

PostPosted: Sat Mar 08, 2014 3:25 am
by lcl
That already works. Just notice that you can't have the actor pointer use the same name as the actor itself.

Re: CreateActor return actor pointer

PostPosted: Sat Mar 08, 2014 3:40 am
by CrackedP0t
It already does that??!!
:shock:
Well, that's useful.

Whoops :oops:

Re: CreateActor return actor pointer

PostPosted: Sat Mar 08, 2014 8:07 am
by lcl
Haha :lol: