CreateDynamincObject help
#1

Why dynamincs objects doesn't appear anymore? I even putted a timer to let them load but nothing, any help?
Reply
#2

Can you give me the code?
Reply
#3

Quote:

Under OnGameModeInit: LoadObjects();

Then i made a stock of dynamincs objects, those objects listed below are a part of them:

Quote:

// Rest
SAPDLobby[0] = CreateDynamicObject(14819, 246.4050, 72.3000, 1003.6700, 0.0000, 0.0000, 180.0000); // SAPD Lobby Door Left
SAPDLobby[1] = CreateDynamicObject(14819, 246.4050, 72.5750, 1003.6650, 0.0000, 0.0000, 0.0000); // SAPD Lobby Door Right
SAPDLobby[2] = CreateDynamicObject(13360, 246.9850, 72.4500, 1003.7000, 0.0000, 0.0000, 180.0000); // SAPD Lobby Door Left Block
SAPDLobby[3] = CreateDynamicObject(13360, 245.8330, 72.4500, 1003.7000, 0.0000, 0.0000, 180.0000); // SAPD Lobby Door Right Block

SAPDCells[0] = CreateDynamicObject(14819,259.105194,90.812126,100 2.584350,0.000000,0.000000,-90.000000); // SAPD Cells Door Left
SAPDCells[1] = CreateDynamicObject(14819,258.843353,90.840599,100 2.584350,0.000000,0.000000,91.000000); // SAPD Cells Door Right
SAPDCells[2] = CreateDynamicObject(13360,258.949157,91.412040,100 2.528625,0.000000,0.000000,-90.000000); // SAPD Cells Door Left Block
SAPDCells[3] = CreateDynamicObject(13360,258.949157,90.292076,100 2.528625,0.000000,0.000000,90.000000); // SAPD Cells Door Right Block

SAPDBarrier = CreateDynamicObject(968, 1544.6943359375, -1630.73046875, 13.27956199646, 0.000000, 90, 90); // SAPD Barrier
SAPDGate = CreateDynamicObject(971, 1588.6428222656, -1638.02734375, 15.240161895752, 0, 0, 181.03271484375); // SAPD Gate

SAPDOffice[0] = CreateDynamicObject(13360,255.494674,85.290985,100 2.445312,0.000000,0.000000,0.000000); // SAPD Office Door Left
SAPDOffice[1] = CreateDynamicObject(13360,254.380661,85.286033,100 2.445312,0.000000,0.000000,180.000000); // SAPD Office Door Right

SAPDChief[0] = CreateDynamicObject(14819,222.281802,69.786598,100 5.079895,0.000000,0.000000,-90.000000);// Chief's Door Right
SAPDChief[1] = CreateDynamicObject(14819,222.002853,69.801109,100 5.079895,0.000000,0.000000,-270.000000);// Chief's Door Left
SAPDChief[2] = CreateDynamicObject(13360,222.120773,70.343833,100 5.128601,0.000000,0.000000,-90.000000); // Chief's Block Right
SAPDChief[3] = CreateDynamicObject(13360,222.120773,69.220504,100 5.128601,0.000000,0.000000,-270.000000); // Chief's Block Left

Reply
#4

Format is: CreateDynamicObject(ID object, positionX,positionY,positionZ,rotationX,rotationY, rotationZ, 0,virtualworld, (put it -1 to allow all player see the object), (radius) );

So, you can try this:
SAPDLobby[0] = CreateDynamicObject(14819, 246.4050, 72.3000, 1003.6700, 0.0000, 0.0000, 180.0000, 0,0,-1,200); // SAPD Lobby Door Left

I hope its work
Reply
#5

Quote:
Originally Posted by Fiore
Посмотреть сообщение
Why dynamincs objects doesn't appear anymore? I even putted a timer to let them load but nothing, any help?
If they aren't appearing use streamer
Reply
#6

He is already using a streamer I guess, look at this
pawn Код:
CreateDynamincObject
Reply
#7

Quote:
Originally Posted by blackbhuta
Посмотреть сообщение
Format is: CreateDynamicObject(ID object, positionX,positionY,positionZ,rotationX,rotationY, rotationZ, 0,virtualworld, (put it -1 to allow all player see the object), (radius) );

So, you can try this:
SAPDLobby[0] = CreateDynamicObject(14819, 246.4050, 72.3000, 1003.6700, 0.0000, 0.0000, 180.0000, 0,0,-1,200); // SAPD Lobby Door Left

I hope its work
You do not have to add this, it's optional.

Quote:
Originally Posted by sgtjones12
Посмотреть сообщение
If they aren't appearing use streamer
He is using a streamer.

OT: I'm experiencing the same issues with objects not showing up similar to this.

https://sampforum.blast.hk/showthread.php?tid=387502
Reply
#8

Doesn't work, any suggestions?
Reply
#9

Quote:
Originally Posted by Fiore
Посмотреть сообщение
Doesn't work, any suggestions?
I think it's a SA-MP bug, although someone correct me if I'm wrong. Using the default CreateObject and using other streamers the same thing still happens.
Reply
#10

LOL then i should remove dynamics and just add objects?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)