Data Realms Fan Forums
http://45.55.195.193/

Some questions
http://45.55.195.193/viewtopic.php?f=73&t=16935
Page 1 of 1

Author:  DSMK2 [ Sat Oct 24, 2009 12:17 am ]
Post subject:  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?

Author:  TheLastBanana [ Sat Oct 24, 2009 12:28 am ]
Post subject:  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.

Page 1 of 1 All times are UTC [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/