SetVehicleParamsForPlayer - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: SetVehicleParamsForPlayer (
/showthread.php?tid=112445)
SetVehicleParamsForPlayer -
Khelif - 07.12.2009
I have searched.. well, I use SetVehicleParamsForPlayer function to set yellow marker on vehicle, but I want to remove the blip from the radar, is that possible?
Re: SetVehicleParamsForPlayer -
DJDhan - 08.12.2009
Mm
Have a look
at
THIS
Re: SetVehicleParamsForPlayer -
Sew_Sumi - 08.12.2009
You can't remove the marker, unless you do something with a IsVehicleStreamedIn or something to check that it is near, then a isplayerinrangeofpoint and do it to the cars x,y,z and do a range.
But, The method I am thinking of may cause lag and stuff... It's totally just as an idea of what you want.
What I think you want is for people to literally have to find the car without the map giving them the advantage. (Which would be cool, Just I don't think it is possible easily.)
Re: SetVehicleParamsForPlayer -
Balon - 08.12.2009
Changing VW for a short time will make the marker disappear.
Re: SetVehicleParamsForPlayer -
Sew_Sumi - 08.12.2009
Quote:
Originally Posted by Balon
Changing VW for a short time will make the marker disappear.
|
so a 2 - 5 second warp to another VirtualWorld will remove the marker, But does it keep the arrow on the roof?
and, If you switch the VirtualWorld, The OnVehicleStreamIn will again be called?
Re: SetVehicleParamsForPlayer -
Mike Garber - 08.12.2009
OnVehicleStreamIn is called several times every second.
I tried to do SetVehicleToRespawn on a vehicle under OnVehicleStreamIn, and the vehicle was gone (because it respawned that often).
I could see It some times like a millisecond or something, but that was It. :P
Re: SetVehicleParamsForPlayer -
Balon - 08.12.2009
Quote:
so a 2 - 5 second warp to another VirtualWorld will remove the marker, But does it keep the arrow on the roof?
|
Try with shorter amount of time, for example 500 ms.