Blockland Forums > Modification Help

Raycast question

Pages: (1/1)

Triple Nickels:

Does anyone know how to find where a raycast is "interrupted"?

for example: the new destructo wand spawns an emitter at the point where the raycast is interrupted. Another example: if you shot a raycast 300 units ahead of you, and detected an interiorObject, how would you tell the distance between you and the interiorObject even though the interiorObject is closer than 300 units ahead of you?

Amade:

posFromRaycast?

Triple Nickels:


--- Quote from: Amade on July 21, 2010, 12:42:20 AM ---posFromRaycast?

--- End quote ---
could you explain use? posFromRayCast(); doesn't give an explanation.

Amade:

%pos = posFromRaycast(%raycast);

Triple Nickels:

Alright; thanks. I can't test it right now but I'm pretty sure that'll work.

Pages: (1/1)

Go to full version