neon light with attachobjecttovehicle - 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: neon light with attachobjecttovehicle (
/showthread.php?tid=390700)
neon light with attachobjecttovehicle -
Hugoca - 07.11.2012
Hello! How to make neon light with AttachObjectToVehicle of infernus with these coordinates 2524.84,2377.20,4.21,270,5,5 ?
Re: neon light with attachobjecttovehicle -
Red_Dragon. - 07.11.2012
Add those:
pawn Код:
new objectid = CreateObject(...); // ID of the object replaced by the dots
new vehicleid = GetPlayerVehicleID(playerid);
Also add this:
pawn Код:
AttachObjectToVehicle(objectid, vehicleid, FLOAT:offsetX, FLOAT:offsetY, FLOAT:offsetZ, RotX, RotY, RotY);
hope i helped
Re: neon light with attachobjecttovehicle -
cecko1235 - 07.11.2012
pawn Код:
new objectid = CreateObject(18648);
new vehicleid = GetPlayerVehicleID(playerid);
AttachObjectToVehicle(objectid, 411, 2524.84,2377.20,4.21,270,5,5);
right?
Re: neon light with attachobjecttovehicle -
Glad2BeHere - 07.11.2012
wrong
just fix that line because if u just so he said vehicleid is to get the player current vehicle and now the neon will attach to the current vehicle (Y)
pawn Код:
AttachObjectToVehicle(objectid, vehicleid, 2524.84,2377.20,4.21,270,5,5);
Re: neon light with attachobjecttovehicle -
cecko1235 - 07.11.2012
thanks but how to make this neon red?
Re: neon light with attachobjecttovehicle -
Glad2BeHere - 07.11.2012
http://www.k-dst.de/kategorien.php?kat=Lights object ids there
Re: neon light with attachobjecttovehicle -
Hugoca - 07.11.2012
i still can't see neon
Re: neon light with attachobjecttovehicle -
cecko1235 - 07.11.2012
dont work .. i made this and again i dont have a neon..
Re: neon light with attachobjecttovehicle -
Glad2BeHere - 07.11.2012
ummm yall need to ensure the offset is correct :/ and get the vehicle position the neon is create in the positing
gimme 5 minutes cause im doing something and ill do up a code 4 u
Re: neon light with attachobjecttovehicle -
Hugoca - 07.11.2012
Quote:
Originally Posted by Glad2BeHere
ummm yall need to ensure the offset is correct :/ and get the vehicle position the neon is create in the positing
gimme 5 minutes cause im doing something and ill do up a code 4 u
|
ok.thanks