SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help > Tutorials

Thread Tools Display Modes
Old 22/07/2018, 06:17 PM   #1
Big Clucker
Join Date: Oct 2012
Location: Italy
Posts: 57
Reputation: 6
Default ColAndreas

Hi everybody. I would like an tutorial how to use ColAndreas (I never used it or MapAndreas).
I'm creating an submarine script and i want to "stop the submarine" when it "hit" ground under water , ground and other objectes , but idk how to use it . Thanks.
Ph0eniX is offline   Reply With Quote
Old 23/07/2018, 12:32 AM   #2
Little Clucker
Join Date: Apr 2018
Posts: 17
Reputation: 1
Default Re: ColAndreas

its so easy basically man function is
CA_RayCastLine(Float:StartX, Float:StartY, Float:StartZ, Float:EndX, Float:EndY, Float:EndZ, &Float, &Float:y, &Float:z);
look at this example :

wall = CA_RayCastLine(myposX, mypoY, myposZ, anotherPlayerposX, anotherPlayerposY, anotherPlayerposZ, &Float, &Float:y, &Float:z);
if(wall != 0) there is an object between you and the player and basically wall is modelid of object id its 0 it mean no objects between you and player the x and y and z pos there are offsets that ray detect meanwhile its coords of points between you and the other player
DeadBrain is offline   Reply With Quote

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
ColAndreas DTV Scripting Help 1 20/10/2016 11:22 PM
ColAndreas Max_Andolini Scripting Help 13 12/06/2016 09:14 AM
ColAndreas - What have you used it for? Pottus Everything and Nothing 21 29/03/2016 10:05 PM

All times are GMT. The time now is 12:21 PM.

Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.