View unanswered posts | View active topics It is currently Fri Apr 26, 2024 2:57 pm



Reply to topic  [ 6 posts ] 
 Lua homing objects 
Author Message
User avatar

Joined: Sat Jun 16, 2007 2:31 am
Posts: 2982
Location: Texas
Reply with quote
Post Lua homing objects
Basically, how do I make something use Lua to home in on the enemy? ex: gun that shoots homing rounds.


Wed May 13, 2009 10:38 pm
Profile
happy carebear mom
User avatar

Joined: Tue Mar 04, 2008 1:40 am
Posts: 7096
Location: b8bbd5
Reply with quote
Post 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.


Wed May 13, 2009 10:53 pm
Profile
User avatar

Joined: Sat Jun 16, 2007 2:31 am
Posts: 2982
Location: Texas
Reply with quote
Post 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.


Wed May 13, 2009 10:55 pm
Profile
User avatar

Joined: Thu Mar 06, 2008 10:54 pm
Posts: 1359
Location: USA
Reply with quote
Post 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 :)


Thu May 14, 2009 1:19 am
Profile
happy carebear mom
User avatar

Joined: Tue Mar 04, 2008 1:40 am
Posts: 7096
Location: b8bbd5
Reply with quote
Post 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...


Thu May 14, 2009 1:48 am
Profile
User avatar

Joined: Sat Jun 16, 2007 2:31 am
Posts: 2982
Location: Texas
Reply with quote
Post 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.


Thu May 14, 2009 3:59 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 6 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

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.
[ Time : 0.177s | 17 Queries | GZIP : Off ]