SA-MP Forums

SA-MP Forums (https://forum.sa-mp.com/index.php)
-   SA-MP 0.3.DL (https://forum.sa-mp.com/forumdisplay.php?f=90)
-   -   [Help] With the creation of the object (https://forum.sa-mp.com/showthread.php?t=665070)

AWhite 21/03/2019 09:20 AM

[Help] With the creation of the object
 
1 Attachment(s)
Hello everyone, I wanted to ask for help from knowledgeable people in the scripts of 'Pawn'.

I canít write a game mode that, on my command, created an object (which I modeled in blender) and I could move it along the axes (X, Y, Z). I want to test my made model in the game, but I donít know the language 'Pawn'. Waiting for help from you!:(

Yaozu 21/03/2019 11:49 AM

Re: [Help] With the creation of the object
 
There are two ways you can create your custom model in your server.

You can use the artconfig file which is explained in Kalcor's tutorial: https://forum.sa-mp.com/showthread.php?t=643636

Or you can use a filterscript which allows the use of object flags which is explained by myself here: https://forum.sa-mp.com/showthread.php?t=664466

AWhite 21/03/2019 02:48 PM

Re: [Help] With the creation of the object
 
Quote:

Originally Posted by Yaozu (Post 4089852)
There are two ways you can create your custom model in your server.

You can use the artconfig file which is explained in Kalcor's tutorial: https://forum.sa-mp.com/showthread.php?t=643636

Or you can use a filterscript which allows the use of object flags which is explained by myself here: https://forum.sa-mp.com/showthread.php?t=664466

Thanks!

Kalcor 22/03/2019 03:55 AM

Re: [Help] With the creation of the object
 
What I did in the tutorial was set up the dff as ID -2000. Every model in GTASA has an ID, which you pass to the CreateObject function.

In test_cmds.pwn script, there are commands /crobj and /selobj. So I just did /crobj -2000. Then /selobj can be used to select the object with the mouse cursor and move it around.

Yaozu 22/03/2019 05:35 PM

Re: [Help] With the creation of the object
 
Quote:

Originally Posted by Kalcor (Post 4089961)
What I did in the tutorial was set up the dff as ID -2000. Every model in GTASA has an ID, which you pass to the CreateObject function.

In test_cmds.pwn script, there are commands /crobj and /selobj. So I just did /crobj -2000. Then /selobj can be used to select the object with the mouse cursor and move it around.

Don't know if you've taken a look at my PM but is their a place I can post tutorials to help distinguish between other requests in this sub forum?

As it seems my tutorial and potentially other peoples tutorials are mixed in with other requests in the sub forum. It would be convenient to be able find tutorials with ease.

AWhite 24/03/2019 02:51 PM

Re: [Help] With the creation of the object
 
Quote:

Originally Posted by Kalcor (Post 4089961)
What I did in the tutorial was set up the dff as ID -2000. Every model in GTASA has an ID, which you pass to the CreateObject function.

In test_cmds.pwn script, there are commands /crobj and /selobj. So I just did /crobj -2000. Then /selobj can be used to select the object with the mouse cursor and move it around.

Where can I find this gamemode? I do not know where to download the build with the server under 0.3DL.

AWhite 24/03/2019 05:26 PM

Re: [Help] With the creation of the object
 
Quote:

Originally Posted by Kalcor (Post 4089961)
What I did in the tutorial was set up the dff as ID -2000. Every model in GTASA has an ID, which you pass to the CreateObject function.

In test_cmds.pwn script, there are commands /crobj and /selobj. So I just did /crobj -2000. Then /selobj can be used to select the object with the mouse cursor and move it around.

Found. And where to insert the files dff and txd \ col?


All times are GMT. The time now is 10:58 PM.

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