neon light with attachobjecttovehicle
#1

Hello! How to make neon light with AttachObjectToVehicle of infernus with these coordinates 2524.84,2377.20,4.21,270,5,5 ?
Reply
#2

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
Reply
#3

pawn Код:
new objectid = CreateObject(18648);
new vehicleid = GetPlayerVehicleID(playerid);
AttachObjectToVehicle(objectid, 411, 2524.84,2377.20,4.21,270,5,5);
right?
Reply
#4

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);
Reply
#5

thanks but how to make this neon red?
Reply
#6

http://www.k-dst.de/kategorien.php?kat=Lights object ids there
Reply
#7

i still can't see neon
Reply
#8

dont work .. i made this and again i dont have a neon..
Reply
#9

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
Reply
#10

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)