View unanswered posts | View active topics It is currently Fri Jan 10, 2025 11:20 am



Reply to topic  [ 5 posts ] 
 Some questions that the Lua documentation doesn't go over 
Author Message
User avatar

Joined: Thu Apr 30, 2009 9:57 pm
Posts: 67
Location: They've found us! run!
Reply with quote
Post Some questions that the Lua documentation doesn't go over
I've been working on a large mod, and I feel it's time for me to make a single uber-cheap weapon for fun. The problem is, I can't find the function for onTouch in the lua documentation. I also don't know how to attach a .lua script to a projectile.

Just for your information: the base of this weapon is the dummy Grenade Launcher.
if anyone can simply post the lines I need to use or where to find a more completed lua documentation, that would be nice :)

EDIT: being more specific, what would I write before (gibThis)?


Thu Jun 18, 2009 2:42 pm
Profile WWW
User avatar

Joined: Tue Nov 06, 2007 6:58 am
Posts: 2054
Reply with quote
Post Re: Some questions that the Lua documentation doesn't go over
No onTouch function.

MORays do a decent job.


Thu Jun 18, 2009 6:48 pm
Profile
User avatar

Joined: Sun May 11, 2008 12:50 pm
Posts: 899
Reply with quote
Post Re: Some questions that the Lua documentation doesn't go over
Code:
   ScriptPath = <PathToScript>

Should attach the script to anything.


Thu Jun 18, 2009 7:15 pm
Profile WWW
User avatar

Joined: Thu Apr 30, 2009 9:57 pm
Posts: 67
Location: They've found us! run!
Reply with quote
Post Re: Some questions that the Lua documentation doesn't go over
That kinda goes over what I want to do, but I can't find any documentation on MORays.

So far, I've mostly exclusively did HTML. I've only done a little bit of Torquescript, and a little bit of C++. I've hardly modded .inis, and have NEVER worked with lua D:


Fri Jun 26, 2009 11:45 pm
Profile WWW
User avatar

Joined: Tue Nov 06, 2007 6:58 am
Posts: 2054
Reply with quote
Post Re: Some questions that the Lua documentation doesn't go over
http://datarealms.com/wiki/index.php/Lu ... #CastMORay

Darlos does a nice job of documenting his use of them.
See his code.


Sat Jun 27, 2009 12:00 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 5 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:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.
[ Time : 0.055s | 14 Queries | GZIP : Off ]