[Help]ColAndreas CA_RayCastLine
#1

I really do not understand what the CA_RayCastLine for
(( CA_RayCastLine(Float:StartX, Float:StartY, Float:StartZ, Float:EndX, Float:EndY, Float:EndZ, &Float, &Float:y, &Float:z))
And x, y, z for what and how to use it?
I need a simple example
Reply
#2

That function is used to check if there is anything between Start and End pos. If there is any obstacle (wall, tree, fence, any object with collision) it will return modelid and store position of ray cast collision position to x, y, z.

So basically you can do many things with it...from checking if player is in air to checking if there is something in a path of missile/bullet...
Reply
#3

THanks, <3
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)