Help with with multi dimensional arrays.
#3

Quote:
Originally Posted by RoboN1X
Посмотреть сообщение
Are there 2 bridge objects (and each bridge has fixed and damaged one)?
And what is b_Objects[2] for?
Can you show the code line where you used CreateDynamicObject()?
The b_Objects[2] holds the object IDs that are being created. And yes, two objects form a single bridge. When the bridge is collapsed, those two objects changes their positions.

PHP код:
for (new 0MAX_BRIDGESi++) {
    
g_Bridge[i][b_Objects][i] = CreateDynamicObject(g_Bridge[i][b_ID],
        
g_Bridge[i][b_Fixed_X],
        
g_Bridge[i][b_Fixed_Y],
        
g_Bridge[i][b_Fixed_Z],
        
g_Bridge[i][b_Fixed_RX],
        
g_Bridge[i][b_Fixed_RY],
        
g_Bridge[i][b_Fixed_RZ]);

I will have to create few more bridges like this so, bridge IDs 1, 2, 3 or 4 should also have two objects in each and I don't know how to store the object ID and their coordinates there.
Reply


Messages In This Thread
Help with with multi dimensional arrays. - by Sjn - 06.10.2016, 11:09
Re: Help with with multi dimensional arrays. - by RoboN1X - 06.10.2016, 11:42
Re: Help with with multi dimensional arrays. - by Sjn - 06.10.2016, 14:40
Re: Help with with multi dimensional arrays. - by Sjn - 08.10.2016, 07:22

Forum Jump:


Users browsing this thread: 1 Guest(s)