[HELP] Furniture
#1

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?
Reply
#2

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)
Reply
#3

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.
Reply
#4

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"
Reply
#5

Can someone help me please
Reply
#6

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
Reply
#7

Quote:
Originally Posted by Kaperstone
Посмотреть сообщение
worldid = virtual world id
It says tag mismatch.
Reply
#8

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)
Reply
#9

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 !!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)