Data Realms Fan Forums http://45.55.195.193/ |
|
Controlling actors http://45.55.195.193/viewtopic.php?f=73&t=15856 |
Page 1 of 1 |
Author: | weegee [ Tue Jul 14, 2009 11:44 am ] |
Post subject: | 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 |
Author: | 411570N3 [ Tue Jul 14, 2009 12:27 pm ] |
Post subject: | 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. |
Author: | Areku [ Tue Jul 14, 2009 1:41 pm ] |
Post subject: | Re: Controlling actors |
You are looking for this: Code: actor:SetAimAngle(*Insert angle here*); and this: Code: actor:GetController():SetState(Controller.WEAPON_FIRE,true); |
Author: | weegee [ Tue Jul 14, 2009 2:43 pm ] |
Post subject: | Re: Controlling actors |
Thanks, Areku |
Author: | Areku [ Tue Jul 14, 2009 3:09 pm ] |
Post subject: | Re: Controlling actors |
No problem. |
Author: | mail2345 [ Tue Jul 14, 2009 6:31 pm ] |
Post subject: | 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. |
Author: | weegee [ Thu Jul 16, 2009 5:42 pm ] |
Post subject: | 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. |
Page 1 of 1 | All times are UTC [ DST ] |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |