Mapping Help Please -
SilverMapper - 02.08.2017
i want help in mapping objects in car
i want to add objects on car how can i add pls help me i need help so i can map objects on cars bikes
thnx
Re: Mapping Help Please -
TopShooter2 - 02.08.2017
PHP код:
AttachObjectToVehicle(objectid, vehicleid, Float:fOffsetX, Float:fOffsetY, Float:fOffsetZ, Float:fRotX, Float:fRotY, Float:RotZ)
Example:
PHP код:
new Dildo;
public OnGameModeInit()
{
Dildo = CreateObject(4512, 412.1231, 491.231, 499,123, 491.231, 491.231, 491.231, 100);
AttachObjectToVehicle(Dildo, 132, X, Y, Z, FX, FY);
return 1;
}
All X,Y,Z Coordinates aren't correct, just showing you an example.
Re: Mapping Help Please -
Suttix - 02.08.2017
Use texture studio master(
https://github.com/Pottus/Texture-Studio ).
STEPS:
1. Open samp-server.exe and join your localhost server
2. When you're in game then type /newmap (to create new project)
3. type /avnewcar [CAR ID] to create a vehicle you want to attach object on
4. type /avsel [car index] to select a car you want to attach object on
5. type /cobject [object ID] to create object which you wanna attach to vehicle
6. type /sel [object index] to select object
7. type /avsel to attach object to a vehicle
8. type /editobject to edit object :P
9. When you finish your editing then go /avexport or /avexportall to export code for pawno and you'd find code in "scriptfiles" folder
btw. you have /thelp to see all commands
+rep if this helped :P
Re: Mapping Help Please -
SilverMapper - 03.08.2017
Texture Studio Is Not Helping Me In Attaching Objects
so i need help pls
Re: Mapping Help Please -
SilverMapper - 03.08.2017
pls help
Re: Mapping Help Please -
Suttix - 03.08.2017
I don't understand what do you want? If you wanna attach object to a vehicle then read my previous reply.
?
Re: Mapping Help Please -
SilverMapper - 03.08.2017
i did what u said but after all one i started it in my script it not working the object is not attached and car going but object now moving
Re: Mapping Help Please -
Sew_Sumi - 03.08.2017
I used to use the Jernejls map editor, spawn a car at 0,0,0 facing 0, and add the objects onto it, then check the offsets/rotations off that. Because the car is 0,0,0,0 then all the coordinates are simply what the attachobject needs.
Re: Mapping Help Please -
Suttix - 03.08.2017
Quote:
Originally Posted by SilverMapper
i did what u said but after all one i started it in my script it not working the object is not attached and car going but object now moving
|
Give me a code
Re: Mapping Help Please -
SilverMapper - 03.08.2017
Код:
#include <a_samp>
#include <streamer>
new object;
public OnFilterScriptInit()
{
object = CreateVehicle(411,2069.605,1359.476,10.671,2.576,6,0,-1);
AttachObjectToVehicle(object, 411,2069.690185, 1356.396972, 11.059659, 0.000000, 0.000000, 0.000000);
}
public OnFilterScriptExit()
{
DestroyVehicle(object);
}
public OnVehicleSpawn(vehicleid)
{
if(vehicleid == object)
{
}
}
i used this but it wont showing me the object attached to it