SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 12/04/2013, 05:44 PM   #1
Pizzy
Huge Clucker
 
Join Date: May 2012
Posts: 357
Reputation: 115
Default Object editor (While attached to vehicles)

I have tried doing this, although I didn't succeed.

Could anyone confirm that editing objects, while attached to vehicles works? I'd like to make a custom tuning system, and would severely help if I could edit an object, WHILE it were attached to the vehicle.


Any responses appreciated - Please & Thanks!
Pizzy is offline   Reply With Quote
Old 12/04/2013, 06:00 PM   #2
Pottus
High-roller
 
Pottus's Avatar
 
Join Date: Jun 2012
Posts: 4,883
Reputation: 1321
Default Re: Object editor (While attached to vehicles)

You need it all command based.

Code:
// Vehicle Object Movement X-Axis
CMD:mvox(playerid, arg[])
{
	new Float:Movement;
	if(isnull(arg)) Movement = 1.0;
	else sscanf(arg, "f", Movement);

	if(EditCar[playerid][cVID] == INVALID_VEHICLE_ID || vehicles[playerid][MVASel[playerid]][object_id] == INVALID_OBJECT_ID) return 1;

	vehicles[playerid][MVASel[playerid]][ox] += Movement;
	AttachObjectToVehicle(vehicles[playerid][MVASel[playerid]][object_id], EditCar[playerid][cVID], vehicles[playerid][MVASel[playerid]][ox], vehicles[playerid][MVASel[playerid]][oy], vehicles[playerid][MVASel[playerid]][oz], vehicles[playerid][MVASel[playerid]][rx], vehicles[playerid][MVASel[playerid]][ry], vehicles[playerid][MVASel[playerid]][rz]);

	return 1;
}
1.) Set movement in enum
2.) AttachObject
Pottus is offline   Reply With Quote
Old 12/04/2013, 06:37 PM   #3
Pizzy
Huge Clucker
 
Join Date: May 2012
Posts: 357
Reputation: 115
Default Re: Object editor (While attached to vehicles)

Ah, so it's not possible to use the in-game editor? :/, that's a shame.

Oh well - thanks!
Pizzy is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[FilterScript] [0.3e+]Player Attached Object Editor RoboN1X Filterscripts 43 06/03/2019 11:11 AM
[FilterScript] Attached Object Editor Rachael Filterscripts 51 19/11/2016 05:39 PM
[BUG]: Clickable Textdraws / Player attached object editor Pottus Bug Reports 10 17/11/2012 07:31 PM
Object Editor for objects attached to vehicles? Antonio [G-RP] Help Archive 1 01/03/2011 09:50 PM


All times are GMT. The time now is 06:39 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.