Page 1 of 1

Can "EventActor" be used like other actors?

PostPosted: Thu Mar 31, 2005 1:29 pm
by Marcelo_jampa
Can i use?

ball.angle = EventActor.angle;
ball.diretional_velocity = EventActor.diretional_velocity;

I' ve tried to do this but it didn' t work. Is there some way to do this?

PostPosted: Thu Mar 31, 2005 7:59 pm
by jazz_e_bob
Hi Marcelo,

EventActor is the actor that called the script.

Your code seems OK providing it is called by the bat/racquet/club.

( otherwise you would simply be assigning values to themselves. )

PostPosted: Sat Apr 02, 2005 2:10 pm
by makslane
Just use:

ball.angle = angle;
ball.diretional_velocity = diretional_velocity;