i can i attach same object to more than 1 car -
Jokers98s - 22.01.2018
How can i attach a object to more than one vehicle.. For an single vehicle its working how can i do it for same vehicles
Re: i can i attach same object to more than 1 car -
Jokers98s - 22.01.2018
My doubt is that for one vehicle one object right....
i got 25 vehicles which i need to add an object so i have create 25 objects too right ?
Re: i can i attach same object to more than 1 car -
Sew_Sumi - 22.01.2018
Each object for each car will need to be created.
Re: i can i attach same object to more than 1 car -
Jokers98s - 22.01.2018
Already i said i got 25 car's....
is there any way to create them together...
Using enum function. if could please give and example so i could continue then gm currently am working on
Re: i can i attach same object to more than 1 car -
Sew_Sumi - 22.01.2018
Just use a for loop, and just create all of them in the loop.
I'm sure you're going to be using light bars as such (Most common usage)
Regardless though, just make an array of objects, which will be used in this instance.
Code is untested, but it's just for example. CreateObject is just put there to show where you want it.
VV This is likely to need checking, 24 is because arrays start at 0, and so, 24, will actually be 25 as such.
Код:
#define MAX_LIGHTBARS 24
Код:
new LightBars[MAX_LIGHTBARS];
Код:
for (new i = 0; i != MAX_LIGHTBARS; ++i)
{
LightBars[i]=CreateObject(blahdeblah);
}
Because you are attaching them later, they can be put anywhere (Under map is ideal, just in a spot where they won't be visible)
Re: i can i attach same object to more than 1 car -
Jokers98s - 22.01.2018
Actually i am putting an sam site amml on an car