[HELP] Furniture -
Davidmkd123 - 21.02.2018
Hello guys, i've made a furniture system by myself, so now i'm trying to make it with "CreatePlayerObject", cause
if i make it with "CreateDynamicObject" it would create in the interior, so what i'm trynna do is make the object in
one entery, i mean in 1 house, but the same interior. Do you know any solution how to make it with CreateDynamicObject but not be visible in other ones?
Re: [HELP] Furniture -
Kaperstone - 21.02.2018
I don't understand what's the issue with CreateDynamicObject, you can specify the default values if you don't intend to change them and just specify a value for the playerid and/or interiorid?
Код:
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, areaid = -1, priority = 0)
Re: [HELP] Furniture -
Davidmkd123 - 21.02.2018
Quote:
Originally Posted by Kaperstone
I don't understand what's the issue with CreateDynamicObject, you can specify the default values if you don't intend to change them and just specify a value for the playerid and/or interiorid?
Код:
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, areaid = -1, priority = 0)
|
Lol? i never knew that.
Re: [HELP] Furniture -
Davidmkd123 - 21.02.2018
I searched a lil bit, and i found that..
Код:
CreateVWDynamicObject(world, model, x, y, z, rx, ry, rz);
I need something like that, the interior would be the same, but the object
should appear in the interior only if the player virtual world matches.
Btw, thank you for trying to help me !
Код:
error 017: undefined symbol "CreateVWDynamicObject"
Re: [HELP] Furniture -
Davidmkd123 - 21.02.2018
Can someone help me please
Re: [HELP] Furniture -
Kaperstone - 21.02.2018
Quote:
CreateDynamicObject(modelid, Float, Float:y, Float:z, Float:rx, Float:ry, Float:rz, worldid = -1, interiorid = -1, playerid = -1, Floattreamdistance = STREAMER_OBJECT_SD, Float:drawdistance = STREAMER_OBJECT_DD, areaid = -1, priority = 0)
|
worldid = virtual world id
Re: [HELP] Furniture -
Davidmkd123 - 21.02.2018
Quote:
Originally Posted by Kaperstone
worldid = virtual world id
|
It says tag mismatch.
Re: [HELP] Furniture -
AstroPoid - 21.02.2018
In case of changing worldid variable , you have to change others , if you want them to stay on none , just put all of them on -1 except what you are targeting.
Код:
CreateDynamicObject(modelid, Float, Float:y, Float:z, Float:rx, Float:ry, Float:rz, "worldid", -1, -1, -1, -1, -1, -1)
Re: [HELP] Furniture -
Davidmkd123 - 22.02.2018
Solved, for every one who has the same problem, do this !
Код:
CreateDynamicObject(modelid, Float, Float:y, Float:z, Float:rx, Float:ry, Float:rz, "worldid", "vw id", "interiorid", -1, -1, -1, -1)
And also guys make sure that you are in the correct interior/vw !!