[Include] Create your own surface with just one line (CreateObjectSurface)
#25

Quote:
Originally Posted by Pottus
Посмотреть сообщение
I'm going to recommend that you add the ability to set surface rotations as well it's actually easier than it sounds.
Perhaps in some other update, thanks for the idea though.


Quote:
Originally Posted by Ygzeb
Посмотреть сообщение
Great job!

I wanted to ask you (Correlli) if I can use your include for an small map include I am working on and I will release soon? Obviously respecting your credits.
Of course, that's why I released it - so others can use it.


Quote:
Originally Posted by De4dpOol
Посмотреть сообщение
It is amazing. I want to use it. I read it for 20 minutes and want to create a surface like in 2nd picture but don't really understood how to create it . Are the surface starting and ending points same as gang zone start and end points (one corner and opposite corner)? xD
Yep, you got it - minimum and maximum X and Y or maximum and minimum X and Y. Which one you enter first is entirely up to you.

As for the second picture, here's the code:
pawn Код:
new
        s_id = CreateSurface(18752, 215.0, 215.0, 300.0, -1000.0, -1000.0, 1000.0, 1000.0, .d_stream = 1000.0, .d_draw = 1000.0);
SetSurfaceTexture(s_id, 0, 17944, "lngblok_lae2", "white64bumpy");
This will create 100 objects from -1000.0, -1000.0 to 1000.0, 1000.0 position on height 300.0 with streaming and drawing distance of 1000.0. The material is white snow texture. Change the settings how you want them.


@Others: Thanks, I'm glad you like it. I hope it'll fit your needs.
Reply


Messages In This Thread
[UPDATE] Dynamic surfaces - Create your own surface with just one line - by Correlli - 10.03.2015, 01:11
Re: Create your own surface with just one line (CreateObjectSurface) - by JeaSon - 10.03.2015, 04:09
Re: Create your own surface with just one line (CreateObjectSurface) - by AroseKhanNiazi - 10.03.2015, 08:04
Re: Create your own surface with just one line (CreateObjectSurface) - by LazyB0y - 10.03.2015, 12:20
Re: Create your own surface with just one line (CreateObjectSurface) - by KayJ - 10.03.2015, 13:13
Re : Create your own surface with just one line (CreateObjectSurface) - by streetpeace - 10.03.2015, 13:33
Re: Create your own surface with just one line (CreateObjectSurface) - by Alex Magaсa - 10.03.2015, 13:58
Re: Create your own surface with just one line (CreateObjectSurface) - by Pottus - 10.03.2015, 16:06
Re: Create your own surface with just one line (CreateObjectSurface) - by Abagail - 10.03.2015, 16:57
Re: Create your own surface with just one line (CreateObjectSurface) - by Correlli - 10.03.2015, 17:04
Re: Create your own surface with just one line (CreateObjectSurface) - by Abagail - 10.03.2015, 17:08
Re: Create your own surface with just one line (CreateObjectSurface) - by PT - 10.03.2015, 18:45
Re: Create your own surface with just one line (CreateObjectSurface) - by Correlli - 15.03.2015, 00:43
Re: Create your own surface with just one line (CreateObjectSurface) - by Runn3R - 15.03.2015, 16:58
Re: Create your own surface with just one line (CreateObjectSurface) - by RebeloX - 15.03.2015, 17:08
Re: Create your own surface with just one line (CreateObjectSurface) - by Pottus - 15.03.2015, 17:34
Re: Create your own surface with just one line (CreateObjectSurface) - by Kapersky™ - 15.03.2015, 17:39
Re: Create your own surface with just one line (CreateObjectSurface) - by AIped - 15.03.2015, 17:42
Re: Create your own surface with just one line (CreateObjectSurface) - by Zues - 15.03.2015, 18:15
Reply - by Ygzeb - 17.03.2015, 22:51
Re: Create your own surface with just one line (CreateObjectSurface) - by Don_Cage - 18.03.2015, 00:49
Re: Create your own surface with just one line (CreateObjectSurface) - by De4dpOol - 18.03.2015, 05:18
Re: Create your own surface with just one line (CreateObjectSurface) - by Kar - 18.03.2015, 06:19
Re: Create your own surface with just one line (CreateObjectSurface) - by iSkyline - 18.03.2015, 12:15
Re: Reply - by Correlli - 18.03.2015, 14:27
Re: Create your own surface with just one line (CreateObjectSurface) - by iZN - 18.03.2015, 14:39
Re: Create your own surface with just one line (CreateObjectSurface) - by davve95 - 18.03.2015, 19:46
Re: Create your own surface with just one line (CreateObjectSurface) - by HydraHumza - 02.04.2015, 10:01
Re: Create your own surface with just one line (CreateObjectSurface) - by Crayder - 24.05.2015, 19:26

Forum Jump:


Users browsing this thread: 4 Guest(s)