putting the object behind the vehicle - 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: putting the object behind the vehicle (
/showthread.php?tid=267984)
putting the object behind the vehicle -
gold - 10.07.2011
hello, i'm making a system like HotPrusit. just about, spikes
now i have this problem, that i can't find how to do the object before the vehicle. when i tried, its only at the bottem, at the side, or in the middle. but i want it behind the vehicle, here is the code :
Quote:
new Float:plocx,Float:plocy,Float:plocz,Float:ploca;
GetPlayerPos(playerid, plocx, plocy, plocz);
GetPlayerFacingAngle(playerid,ploca);
CreateStrip(plocx,plocy,plocz,ploca);
format(string,sizeof(string),"[HQ]: Officer %s has placed a Spikestrip(1) at his position, over.",sendername);
SendRadioMessage(1,COLOR_BLUE,string);
format(string, sizeof(string), "* %s pushes a button on his police vehicle conrtol plate", sendername);
ProxDetector(30.0, playerid, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,CO LOR_CHAT5);
format(string, sizeof(string), "* some spike strips fall from the back (%s) ", sendername);
ProxDetector(30.0, playerid, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,CO LOR_CHAT5);
GameTextForPlayer(playerid,"~w~Spikestrip ~b~Placed!",3000,1);
|
i tried this :
Quote:
CreateStrip(plocx-9.9,plocy,plocz,ploca);
CreateStrip(plocx,plocy-9.9,plocz,ploca);
CreateStrip(plocx,plocy,plocz-9.9,ploca);
CreateStrip(plocx,plocy,plocz,ploca-9.9);
//The "-9.9" is for the testing.
|
please help how i can put it behind the vehicle.. thanks to all who help me :)
Re: putting the object behind the vehicle -
gold - 11.07.2011
up, please help and the post was started yesterday, now in page 3 and no answers ;(
Re: putting the object behind the vehicle -
Wesley221 - 11.07.2011
Just get the position behind the vehicle, and place it there?
Re: putting the object behind the vehicle -
gold - 11.07.2011
i dont know how to do that, please help..
&
i need it to stay there, not follow the car...