View unanswered posts | View active topics It is currently Fri Dec 27, 2024 8:40 am



Reply to topic  [ 2 posts ] 
 Some questions 
Author Message
User avatar

Joined: Fri Dec 28, 2007 4:19 am
Posts: 1119
Reply with quote
Post Some questions
So I've decided to work on my energy weapons, going for the scan hit type.
CastMORay:
The starting position. - Vector
The vector to trace along. - Vector, but to where?
An MOID to ignore. Any child MO's of this MOID will also be ignored. -MOID? I just want to hit any MO.
A specific material ID to ignore hits with. - Int
Whether to ignore all terrain hits or not. - Boolean?

I'm slightly annoyed by how the wiki doesn't mention what data type arguments want. As well, is there any way to check ammo count?


Sat Oct 24, 2009 12:17 am
Profile
DRL Developer
DRL Developer
User avatar

Joined: Wed Dec 13, 2006 5:27 am
Posts: 3138
Location: A little south and a lot west of Moscow
Reply with quote
Post Re: Some questions
1. Vector. Where the ray should start at.
2. Vector. This is just expressing a relative coordinate to the starting position for the ray to stop at. For instance, if the first argument was (5,5) and this was (10,15), the ray would stop at (15,20).
3. Every GetsHitByMOs MO has an ID. No MO has an ID of 255, so set it to that.
4. Int. Set it to 0 (air) unless you have something else to ignore.
5. Boolean (in Lua, true or false, NOT 1 or 0). If this is true, the ray will keep going through all terrain. If it's false, it will only go through whatever material you specified in 4.

The wiki doesn't tell you the types, but it's not hard to find what types are needed. Just put the function into the console with no arguments and the console will spit back out what is expected.

Right now, you can't check ammo count, but you can check if it's full.


Sat Oct 24, 2009 12:28 am
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 2 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.330s | 13 Queries | GZIP : Off ]