SA-MP Forums Archive
Help please - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Help please (/showthread.php?tid=381877)



Help please - Alcatraz Gaming - 01.10.2012

How to make a object, increase the size of a object, and place it in my map?


Re: Help please - Bicentric - 01.10.2012

You have to use the following function:

pawn Код:
CreateObject(modelid, Float:X, Float:Y, Float:Z, Float:rX, Float:rY, Float:rZ, Float:DrawDistance)
You can't increase the size of an object as far as I am aware. But if you would like to do some mapping then take a look at JernejL's Map Editior

But if you already have a MTA .map file you can always head to ConvertFFS and convert it.


Re: Help please - Alcatraz Gaming - 01.10.2012

Bicentric, can you show an example of a new object with the code you've given?


Re: Help please - ReneG - 01.10.2012

The only objects that can be scaled up are attachable objects.


Re: Help please - Alcatraz Gaming - 01.10.2012

What do you mean by attachable objects?


Re: Help please - ReneG - 01.10.2012




Re: Help please - Extremo - 01.10.2012

https://sampwiki.blast.hk/wiki/SetPlayerAttachedObject

See the scale parameters.


Re: Help please - Alcatraz Gaming - 01.10.2012

So, impossible to make new objects which is not in the SA:MP objects list?


Re: Help please - Extremo - 01.10.2012

Quote:
Originally Posted by Vinnie Robardo
Посмотреть сообщение
So, impossible to make new objects which is not in the SA:MP objects list?
You can experiment with:

https://sampwiki.blast.hk/wiki/SetObjectMaterial

and try if you can somehow cheat what you want.


Re: Help please - Bicentric - 01.10.2012

Quote:
Originally Posted by Vinnie Robardo
Посмотреть сообщение
Bicentric, can you show an example of a new object with the code you've given?
The following code will add 'big blue trash bin with flies' in the middle of the map. I increase the Z cord because it will be under the map if it was set to '0'.

pawn Код:
CreateObject(1236, 0.000, 0.000, 5.000, 0.000, 0.000, 0.000, 300.00);
Normally, 'CreateObject' functions should be called when the script is initialized, so they're commonly called on the callback 'OnGameModeInit'.