i can i attach same object to more than 1 car
#1

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

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

Each object for each car will need to be created.
Reply
#4

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

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

Actually i am putting an sam site amml on an car
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)