Data Realms Fan Forums http://45.55.195.193/ |
|
Lua homing objects http://45.55.195.193/viewtopic.php?f=73&t=14611 |
Page 1 of 1 |
Author: | whitty [ Wed May 13, 2009 10:38 pm ] |
Post subject: | Lua homing objects |
Basically, how do I make something use Lua to home in on the enemy? ex: gun that shoots homing rounds. |
Author: | Duh102 [ Wed May 13, 2009 10:53 pm ] |
Post subject: | Re: Lua homing objects |
Why don't you check the Lua file for the coalition homing rocket? I looked it over first thing, it looks pretty simple. |
Author: | whitty [ Wed May 13, 2009 10:55 pm ] |
Post subject: | Re: Lua homing objects |
Duh102 wrote: Why don't you check the Lua file for the coalition homing rocket? I looked it over first thing, it looks pretty simple. Hmm... Didn't know there was a homing rocket. Will do, thanks. *EDIT* Doesn't work on what I used it on. |
Author: | Mind [ Thu May 14, 2009 1:19 am ] |
Post subject: | Re: Lua homing objects |
Duh102 wrote: Why don't you check the Lua file for the coalition homing rocket? I looked it over first thing, it looks pretty simple. This question has prolly been asked 192850938 times, but where did you learn to Lua code, duh? If its not editing already made stuff, then id like to know |
Author: | Duh102 [ Thu May 14, 2009 1:48 am ] |
Post subject: | Re: Lua homing objects |
Funny, I've never gotten asked that XD In fact, I don't know how to code Lua, more than tinkering. I might later. @whitty: It worked for me. Just make sure your rocket is an AEmitter with a low GlobalAccScalar and is driven mostly by it's emissions (as opposed to just being a fancy bullet that doesn't really use it's emissions), and somewhere in it's definition put Code: (tab)ScriptPath = Coalition.rte/Devices/Weapons/Launchers/Missile.lua Note to self: Homing Minimissiles need to be able to turn better... |
Author: | whitty [ Thu May 14, 2009 3:59 am ] |
Post subject: | Re: Lua homing objects |
I've looked through the code for the Coalition missile, yet I can't get mine to work. It's an AEmitter, I just don't know what I'm doing wrong. |
Page 1 of 1 | All times are UTC [ DST ] |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |