|
FAQ
• Search • Login
|
|
Page 1 of 1
|
[ 7 posts ] |
|
Author |
Message |
weegee
DRL Developer
Joined: Thu Jun 11, 2009 2:34 pm Posts: 966 Location: Moscow, Russia
|
Controlling actors
Is it possible to make an actor do something specific using Lua? I'm interested in making an actor aim at the certain angle and then fire it's weapons at certain time. AFAIK aiming is not difficult but what about actually firing? Should I mess with Controller class to do that?
Thanx in advance
|
Tue Jul 14, 2009 11:44 am |
|
|
411570N3
Joined: Wed Jan 07, 2009 10:26 am Posts: 4074 Location: That quaint little British colony down south
|
Re: Controlling actors
I'm quite sure there was either a function for it or a boolean that could be checked to true which meant that the actor would fire either this or the next sim update.
|
Tue Jul 14, 2009 12:27 pm |
|
|
Areku
Joined: Fri Oct 17, 2008 9:46 pm Posts: 5212 Location: The Grills Locker.
|
Re: Controlling actors
You are looking for this: Code: actor:SetAimAngle(*Insert angle here*); and this: Code: actor:GetController():SetState(Controller.WEAPON_FIRE,true);
|
Tue Jul 14, 2009 1:41 pm |
|
|
weegee
DRL Developer
Joined: Thu Jun 11, 2009 2:34 pm Posts: 966 Location: Moscow, Russia
|
Re: Controlling actors
Thanks, Areku
|
Tue Jul 14, 2009 2:43 pm |
|
|
Areku
Joined: Fri Oct 17, 2008 9:46 pm Posts: 5212 Location: The Grills Locker.
|
Re: Controlling actors
No problem.
|
Tue Jul 14, 2009 3:09 pm |
|
|
mail2345
Joined: Tue Nov 06, 2007 6:58 am Posts: 2054
|
Re: Controlling actors
I would set the InputMode to network mode before operating to null out the AI features, as disabled still has a few AI features.
|
Tue Jul 14, 2009 6:31 pm |
|
|
weegee
DRL Developer
Joined: Thu Jun 11, 2009 2:34 pm Posts: 966 Location: Moscow, Russia
|
Re: Controlling actors
mail2345 wrote: I would set the InputMode to network mode before operating to null out the AI features, as disabled still has a few AI features. Added this line to experimental dropship control. Thanks, mail.
|
Thu Jul 16, 2009 5:42 pm |
|
|
|
|
Page 1 of 1
|
[ 7 posts ] |
|
Who is online |
Users browsing this forum: No registered users |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot post attachments in this forum
|
|