SA-MP Forums Archive
CreateDynamicObjectEx help - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: CreateDynamicObjectEx help (/showthread.php?tid=632488)



CreateDynamicObjectEx help - MrFantasy - 15.04.2017

Код:
    housedjord = CreateDynamicObjectEx(19378,247.573,-1848.020,3332.277,0.000,90.000,0.000,300.000,300.000);
    SetDynamicObjectMaterial(housedjord, 0, 18031, "cj_exp", "mp_furn_floor", 0x00000000);
How do I change the object to interior 1?


Re: CreateDynamicObjectEx help - Inceptio - 15.04.2017

Quote:
Originally Posted by MrFantasy
Посмотреть сообщение
Код:
    housedjord = CreateDynamicObjectEx(19378,247.573,-1848.020,3332.277,0.000,90.000,0.000,300.000,300.000);
    SetDynamicObjectMaterial(housedjord, 0, 18031, "cj_exp", "mp_furn_floor", 0x00000000);
How do I change the object to interior 1?
What do you exactly mean by changing the object to interior 1?


Re: CreateDynamicObjectEx help - MrFantasy - 15.04.2017

Quote:
Originally Posted by Inceptio
Посмотреть сообщение
What do you exactly mean by changing the object to interior 1?
Код:
	cityhall = CreateDynamicObject(19377,938.843,-5.012,1500.938,0.000,90.000,0.000, .interiorid = 1);
	SetDynamicObjectMaterial(cityhall, 0, 14581, "ab_mafiasuitea", "cof_wood2", 0);
Like that, but how do i do that for CreateDynamicObjectEx? The object will be placed in interior something.


Re: CreateDynamicObjectEx help - gurmani11 - 15.04.2017

Quote:

CreateDynamicObjectEx(modelid, Float, Float:y, Float:z, Float:rx, Float:ry, Float:rz, Floattreamdistance = STREAMER_OBJECT_SD, Float:drawdistance = STREAMER_OBJECT_DD, worlds[] = { -1 }, interiors[] = { -1 }, players[] = { -1 }, areas[] = { -1 }, priority = 0, maxworlds = sizeof worlds, maxinteriors = sizeof interiors, maxplayers = sizeof players, maxareas = sizeof areas)

Код:
housedjord = CreateDynamicObjectEx(19378,247.573,-1848.020,3332.277,0.000,90.000,0.000,300.000,300.000, -1, 1);
__________________________________________________________________________________________________________^_^
-----------------------------------------------------------------------------------------------------World---Interior
SetDynamicObjectMaterial(housedjord, 0, 18031, "cj_exp", "mp_furn_floor", 0x00000000);



Re: CreateDynamicObjectEx help - MrFantasy - 15.04.2017

Quote:
Originally Posted by gurmani11
Посмотреть сообщение
Код:
housedjord = CreateDynamicObjectEx(19378,247.573,-1848.020,3332.277,0.000,90.000,0.000,300.000,300.000, -1, 1);
__________________________________________________________________________________________________________^_^
-----------------------------------------------------------------------------------------------------World---Interior
SetDynamicObjectMaterial(housedjord, 0, 18031, "cj_exp", "mp_furn_floor", 0x00000000);
Код:
C:\Users\Brain\Desktop\The Real One\filterscripts\mapping.pwn(3447) : error 035: argument type mismatch (argument 10)



Re: CreateDynamicObjectEx help - gurmani11 - 15.04.2017

oh crap, set world to Zero 0