Jump to content

[C#] [Request] ColeShape in block as a varriable


Recommended Posts

Posted

Hi guys.

I'm looking for a solution for my problem.

I want to create a bunch of coleshapes, but just one time using with a block or something else.

 

 

So what im using at this moment is look like this:

ColShape col_Parkslot_1 = NAPI.ColShape.CreateCylinderColShape(new Vector3(-137, 6199, 31), 2.0f, 1.0f);
ColShape col_Parkslot_2 = NAPI.ColShape.CreateCylinderColShape(new Vector3(-137, 6199, 31), 2.0f, 1.0f);
ColShape col_Parkslot_3 = NAPI.ColShape.CreateCylinderColShape(new Vector3(-137, 6199, 31), 2.0f, 1.0f);

 

And what I want is something like this:

Colshape ParkSlot[50];

ParkSlot[1] = NAPI.ColShape.CreateCylinderColShape(new Vector3(-137, 6199, 31), 2.0f, 1.0f);
ParkSlot[2] = NAPI.ColShape.CreateCylinderColShape(new Vector3(-137, 6199, 31), 2.0f, 1.0f);
ParkSlot[3] = NAPI.ColShape.CreateCylinderColShape(new Vector3(-137, 6199, 31), 2.0f, 1.0f);

 

Can you guys help me with this please?

Thanks in advance! :)
 
 

(Sry for the f*cked up description. I've came from pawn, and over there this is the way how we do things :D )

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...