About Store Forum Documentation Contact
Donations:
206$/mo



Post Reply 
Help on making an RTS
Author Message
Rudyjason Offline
Member

Post: #1
Help on making an RTS
Hey there, Im Rudy,

I'm currently using the essenthel engine for school.
Me and my group are trying to make a RTS but have stumbled upon a minor problem.
When trying to make unit selection work, I try to ray-test if I hit the character I created on the screen using Physics.ray. The problem is how do I give my character a flag and how do I use this flag to make the ray test ONLY the character? right now I'm using 3 of the 4 arguments in Physics.ray and the fourth is supposed to enable ray-testing for certain "groups". how do you use these groups and how to assign them?

thanks for the help!!!
Also, anyone have any idea's for box selection? I already managed to create the box but any ideas on how to test what is inside the box?
thanks
(This post was last modified: 03-24-2010 01:03 PM by Rudyjason.)
03-24-2010 01:00 PM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #2
RE: Help on making an RTS
Actor::group()
Physics.ray (group) - here group is a bit combination of selected groups
03-24-2010 05:02 PM
Find all posts by this user Quote this message in a reply
Post Reply