SA-MP Forums Archive
[Help] With the creation of the object - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP DL Edition (https://sampforum.blast.hk/forumdisplay.php?fid=92)
+--- Forum: SA-MP 0.3.DL (https://sampforum.blast.hk/forumdisplay.php?fid=90)
+--- Thread: [Help] With the creation of the object (/showthread.php?tid=665070)



[Help] With the creation of the object - AWhite - 21.03.2019

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!


Re: [Help] With the creation of the object - Yaozu - 21.03.2019

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://sampforum.blast.hk/showthread.php?tid=643636

Or you can use a filterscript which allows the use of object flags which is explained by myself here: https://sampforum.blast.hk/showthread.php?tid=664466


Re: [Help] With the creation of the object - AWhite - 21.03.2019

Quote:
Originally Posted by Yaozu
View Post
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://sampforum.blast.hk/showthread.php?tid=643636

Or you can use a filterscript which allows the use of object flags which is explained by myself here: https://sampforum.blast.hk/showthread.php?tid=664466
Thanks!


Re: [Help] With the creation of the object - Kalcor - 22.03.2019

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.


Re: [Help] With the creation of the object - Yaozu - 22.03.2019

Quote:
Originally Posted by Kalcor
View Post
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.


Re: [Help] With the creation of the object - AWhite - 24.03.2019

Quote:
Originally Posted by Kalcor
View Post
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.


Re: [Help] With the creation of the object - AWhite - 24.03.2019

Quote:
Originally Posted by Kalcor
View Post
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?