Fire Raycast From Eye SupportThe next generation for shooting an invisible raycast from an eyepoint.
DescriptionAre you a scripter? Do any of your scripts involve something to happen to your player's targeted object? Well, this is the containerRaycast() function, but it's made easier and customized to fire it from the client's eyepoint! How to use:
%trgt=fireRaycastFromEye(client,range,typemask);
And here's an example of a kill-player script!
function serverCmdKillPlayer(%client)
{
%trgt=fireRaycastFromEye(%client,8,$Typemasks::PlayerObjectType);
if(isObject(%trgt))
{
%trgt.kill();
}
else
{
messageClient(%client,'',"You must be facing (and close to) a player in order to kill them.");
}
}
And make sure to copy + paste the
Support_raycasts.cs from the zip into any add-on that uses this, and execute the support file using:
exec("./Support_raycasts.cs");
Or else the function won't work. Anyways, hope this helps you!
DownloadSupport_fireRaycastFromEye.zip (Last Updated: Fri May 22, 2009 2:29 pm)
InstallationPut Support_fireRaycastFromEye.zi
p into the Add-Ons folder in your Blockland folder.
Click Here to view this file on the RTB Download Manager