Vehicle Object - 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: Vehicle Object (
/showthread.php?tid=416707)
Vehicle Object -
RenovanZ - 18.02.2013
Hey, I want to edit object vehicle with 0.3e object editor..
Is it posibble to do with this ?
pawn Код:
CustomMods[v] = CreateObject(modelid,0.0,0.0,0.0,0.0,0.0,0.0);
AttachObjectToVehicle(CustomMods[v], v, 0.0,0.0,0.0,0.0,0.0,0.0);
EditObject(playerid, CustomMods[v]);
Re: Vehicle Object -
Scenario - 18.02.2013
You'll want to create the object at the player's position, attach it to the vehicle, and THEN edit it.
Re: Vehicle Object -
RenovanZ - 18.02.2013
This Will Work?
pawn Код:
GetPlayerPos(playerid, X, Y, Z);
CustomMods[v] = CreateObject(modelid,X,Y,Z,0.0,0.0,0.0);
AttachObjectToVehicle(CustomMods[v], v, 0.0,0.0,0.0,0.0,0.0,0.0);
EditObject(playerid, CustomMods[v]);
Re: Vehicle Object -
Scenario - 18.02.2013
Actually, I'm looking into this now. It doesn't seem like when you use EditObject that the object stays attached to the vehicle...
Re: Vehicle Object -
RenovanZ - 18.02.2013
Okay, I've tested it, the object attached near the player, but it doesn't edit the object, can you help me ?
EDIT: Okay, the editobject is working when Im on foot, but why I cant edit the object in car ?
Re: Vehicle Object -
Scenario - 18.02.2013
Unfortunately, it seems like the 0.3e object editor doesn't support vehicle-attached objects. I found
this FS, perhaps it will help you too!