SA-MP Forums

Go Back   SA-MP Forums > SA-MP DL Edition > SA-MP 0.3.DL

Reply
 
Thread Tools Display Modes
Old 21/03/2019, 09:20 AM   #1
AWhite
Little Clucker
 
AWhite's Avatar
 
Join Date: Mar 2018
Posts: 28
Reputation: 0
Question [Help] With the creation of the object

Hello everyone, I wanted to ask for help from knowledgeable people in the scripts of 'Pawn'.

I cant 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 dont know the language 'Pawn'. Waiting for help from you!
Attached Images
File Type: jpg .jpg (190.2 KB, 54 views)
AWhite is offline   Reply With Quote
Old 21/03/2019, 11:49 AM   #2
Yaozu
Little Clucker
 
Yaozu's Avatar
 
Join Date: May 2018
Location: UK, River Styx
Posts: 46
Reputation: 65
Default 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
__________________
Yaozu is offline   Reply With Quote
Old 21/03/2019, 02:48 PM   #3
AWhite
Little Clucker
 
AWhite's Avatar
 
Join Date: Mar 2018
Posts: 28
Reputation: 0
Default Re: [Help] With the creation of the object

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://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!
AWhite is offline   Reply With Quote
Old 22/03/2019, 03:55 AM   #4
Kalcor
SA-MP Developer
 
Join Date: Apr 2005
Posts: 1,015
Reputation: 2802
Default 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.
Kalcor is offline   Reply With Quote
Old 22/03/2019, 05:35 PM   #5
Yaozu
Little Clucker
 
Yaozu's Avatar
 
Join Date: May 2018
Location: UK, River Styx
Posts: 46
Reputation: 65
Default Re: [Help] With the creation of the object

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.
__________________
Yaozu is offline   Reply With Quote
Old 24/03/2019, 02:51 PM   #6
AWhite
Little Clucker
 
AWhite's Avatar
 
Join Date: Mar 2018
Posts: 28
Reputation: 0
Default Re: [Help] With the creation of the object

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.
AWhite is offline   Reply With Quote
Old 24/03/2019, 05:26 PM   #7
AWhite
Little Clucker
 
AWhite's Avatar
 
Join Date: Mar 2018
Posts: 28
Reputation: 0
Question Re: [Help] With the creation of the object

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?
AWhite 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
Object disappears within 10 ms after creation PizzaPuntjes Scripting Help 3 13/06/2015 12:41 PM
Help is needed with object creation. $Marco$ Scripting Help 8 06/12/2014 02:20 PM
Npc creation ancezas Scripting Help 3 13/11/2013 05:51 PM
GM Creation Help? overdose101 Scripting Help 2 12/08/2012 01:21 AM
NPC Creation Help hi45689 Help Archive 4 13/08/2010 12:56 AM


All times are GMT. The time now is 04:04 PM.


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