CreateDynamicObject and VirtualWorlds
#1

Hello all. How to create dynamic object in ALL virtual worlds except 1?
Reply
#2

Код:
CreateDynamicObject(modelid, Float:x, Float:y, Float:z, Float:rx, Float:ry, Float:rz, worldid = -1, interiorid = -1, playerid = -1, Float:streamdistance = STREAMER_OBJECT_SD, Float:drawdistance = STREAMER_OBJECT_DD);
So, set the
Код:
worldid
parameter to your world id choice
Reply
#3

Quote:
Originally Posted by ZBits
Посмотреть сообщение
Код:
CreateDynamicObject(modelid, Float:x, Float:y, Float:z, Float:rx, Float:ry, Float:rz, worldid = -1, interiorid = -1, playerid = -1, Float:streamdistance = STREAMER_OBJECT_SD, Float:drawdistance = STREAMER_OBJECT_DD);
So, set the
Код:
worldid
parameter to your world id choice
He want expect VirtualWorld1 . That he never can.
Reply
#4

Quote:
Originally Posted by SoFahim
Посмотреть сообщение
He want expect VirtualWorld1 . That he never can.
He can.
Reply
#5

Quote:
Originally Posted by ZBits
Посмотреть сообщение
He can.
Apparently.
pawn Код:
for( new VW = 0; VW < 0x7fffffff; VW++ )
{
    if( VW == 1 )
        continue;
    CreateDynamicObject( Model, X, Y, Z, RX, RY, RZ, worldid = VW );
}
0x7fffffff is the amount of all avaiable virtual worlds (Limits - SA-MP Wiki)
But.. I guess it's pointless xD

Greetings
Reply
#6

From my perspective I don't think that's possible. Unless you want to create the same object 2,147,483,646 times.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)