Blockland Forums > Modification Help

help needed on raycasts

Pages: (1/2) > >>

Dy mar:

i want to fix the problem of no good flashlights, but i need to know how to use the raycasting script.

all I want to do is create a light at the first collision in a direct line from the flashlight, but i was thinking of using the raycast script with a projectile with light that doesn't hurt people. Obviously any work arounds would be appreciated as well as a simple explanation of either how raycasting works or how the script which was developed works.

Thankyou

lilboarder32:

What raycasting script are you referring to?

Wizard:

What he's asking for is instructions on how to use raycasts.

Dy mar:

all i want to do is instantly place a light on the nearest surface to the "flashlight" within a certain distance. if possible, dim the light as it gets farther, but thats a lill far fetched. Im new to torque syntax.

lordician:

Instructions on raycasts...
I believe Space Guy could help you for most of it, since he made the raycasting weapons support.

The support for raycasting weapons is used in the tier tactical weapons and more.

Pages: (1/2) > >>

Go to full version