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



Reply to topic  [ 3 posts ] 
 How to cast an MORay properly 
Author Message
User avatar

Joined: Thu Mar 06, 2008 10:54 pm
Posts: 1360
Location: USA
Reply with quote
Post How to cast an MORay properly
Well I want to cast an MORay from "self" towards an actor and see if terrain is in the way, and if it is, assign the variable "blah" to false.

How would I go at doing that?

Thanks :)
Edit, looked at the wiki, but i dunno if this is right


SceneMan:CastMORay(self.Pos, (actor.Pos - self.Pos), 0, 0, 1)


Fri Sep 11, 2009 11:16 pm
Profile
REAL AMERICAN HERO
User avatar

Joined: Sat Jan 27, 2007 10:25 pm
Posts: 5655
Reply with quote
Post Re: How to cast an MORay properly
You'd need a castobstacleray followed by a castmoray actually. MORays ignore terrain.

And your syntax is all wrong but no biggie it's mostly just filling out the arguments.


Fri Sep 11, 2009 11:39 pm
Profile
User avatar

Joined: Sun Jul 13, 2008 9:57 am
Posts: 4886
Location: some compy
Reply with quote
Post Re: How to cast an MORay properly
you can set morays to not ignore terrain actually.
you'll need to ignore self.ID aswell.


Sat Sep 12, 2009 1:29 am
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 3 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 | 13 Queries | GZIP : Off ]