CA_RayCastLine - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: CA_RayCastLine (
/showthread.php?tid=663406)
CA_RayCastLine -
Wajttachu - 30.01.2019
First look at this:
https://imgur.com/a/HMyLKYc
How can I check is player inside that circle? Its object not cp...
Object 's coordinates: 823.91779, -1360.27185, -48.48538
Object model: 18657
I need this like Anti SpawnKill zone where player cannot use guns nor can be damaged...
Here is spawn coordinates (this object is cirle so i cannot us IsPlayerInRangeOfPoint)
823.9178, -1360.6879, -0.5078
I need this check (if you didn't understand yet) :
I want to check is player in that object, not outside but INSIDE that object. ( Not outside this red light )
Its like check for is player in checkpoint but with object..
Re: CA_RayCastLine -
Florin48 - 30.01.2019
you can use IsPlayerInRangeOfPoint or GetPlayerDistanceFromPoint
Re: CA_RayCastLine -
Banditul18 - 30.01.2019
You can use streamer dynamic areas and make use of OnPlayerEnterDynamicArea and OnPlayerLeaveDynamicArea
https://github.com/samp-incognito/sa...Natives-(Areas)
Re: CA_RayCastLine -
Wajttachu - 30.01.2019
Its circle so IsPlayerInRangeOfPoint isn't useful as i mentioned rep hunter
Re: CA_RayCastLine -
Calisthenics - 30.01.2019
Quote:
Originally Posted by Wajttachu
Its circle so IsPlayerInRangeOfPoint isn't useful as i mentioned rep hunter
|
Banditul18 suggested dynamic areas which includes circle, cylinder, sphere, rectangle, cuboid and polygon.
Re: CA_RayCastLine -
Deadpoop - 30.01.2019
Quote:
Originally Posted by Wajttachu
Its circle so IsPlayerInRangeOfPoint isn't useful as i mentioned rep hunter
|
pls sir rep me I will rep u back and give u $5 just pls rep me sir!!!!!!!!!!!!!!!!!!
Re: CA_RayCastLine -
Wajttachu - 30.01.2019
Quote:
Originally Posted by Deadpoop
pls sir rep me I will rep u back and give u $5 just pls rep me sir!!!!!!!!!!!!!!!!!!
|
Look at his bio lmao
Re: CA_RayCastLine -
m4karow - 30.01.2019
Quote:
Originally Posted by Wajttachu
First look at this: https://imgur.com/a/HMyLKYc
How can I check is player inside that circle? Its object not cp...
Object 's coordinates: 823.91779, -1360.27185, -48.48538
Object model: 18657
I need this like Anti SpawnKill zone where player cannot use guns nor can be damaged...
Here is spawn coordinates (this object is cirle so i cannot us IsPlayerInRangeOfPoint)
823.9178, -1360.6879, -0.5078
I need this check (if you didn't understand yet) :
I want to check is player in that object, not outside but INSIDE that object. ( Not outside this red light )
Its like check for is player in checkpoint but with object..
|
you can make your own dynamic area using
this zone editor