[Help] With the creation of the object
#1

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!
Reply
#2

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
Reply
#3

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!
Reply
#4

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.
Reply
#5

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.
Reply
#6

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.
Reply
#7

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?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)