Support_ContainerRayCast - Making raycasting easier, one line at a time
3 posters
Elite Square :: Blockland :: Add-ons
Page 1 of 1
Support_ContainerRayCast - Making raycasting easier, one line at a time
Title:
Support for Container Raycasts
Author:
Meshiest
Description:
Shortens the amount of lines used in container Raycasts for players
This is also a resource
Usage:
Turning this:
FOR EXAMPLE, if you wanted to get the first vehicle in sight for 64 bricks (32 torque units) you would do:
Download:
>>Download<<
or
Download: http://www.mediafire.com/download.php?h12rzlu5i2463w9
Support for Container Raycasts
Author:
Meshiest
Description:
Shortens the amount of lines used in container Raycasts for players
This is also a resource
Usage:
Turning this:
- Code:
%start = %this.getEyePoint();
%vec = %this.getEyeVector();
%end = vectorAdd(%start,vectorScale(%vec,%distance));
%ray = containerRaycast(%start,%end,%type,%this);
%col = firstWord(%ray);
- Code:
%playerObject.getRayCastObject(%distance,"TypeMask [player/p,vehicle/v,brick/b,alwaysbrick/ab]")
FOR EXAMPLE, if you wanted to get the first vehicle in sight for 64 bricks (32 torque units) you would do:
- Code:
talk(findclientbyname("Meshiest").player.getRayCastObject(32,"vehicle"));
Download:
>>Download<<
or
Download: http://www.mediafire.com/download.php?h12rzlu5i2463w9
Last edited by Meshiest on Sun Jan 06, 2013 6:34 pm; edited 1 time in total
Re: Support_ContainerRayCast - Making raycasting easier, one line at a time
Might be really useful, thanks!
Innocent- Blocklandian
- Posts : 17
Join date : 2012-12-31
Age : 28
Location : Montreal
Re: Support_ContainerRayCast - Making raycasting easier, one line at a time
I know, I always forgot the code for container raycastsInnocent wrote:Might be really useful, thanks!
Re: Support_ContainerRayCast - Making raycasting easier, one line at a time
Might use this sometime..
Re: Support_ContainerRayCast - Making raycasting easier, one line at a time
for v2, i might add support for any object instead of just playersHonor wrote:Might use this sometime..
Elite Square :: Blockland :: Add-ons
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
|
|