putting the object behind the vehicle
#1

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 :)
Reply
#2

up, please help and the post was started yesterday, now in page 3 and no answers ;(
Reply
#3

Just get the position behind the vehicle, and place it there?
Reply
#4

i dont know how to do that, please help..
&
i need it to stay there, not follow the car...
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)