is there any way to change CreateObject's world and interior?
#1

.. without using streamer?
Reply
#2

Not really using the default CreateObject

https://sampwiki.blast.hk/wiki/CreateObject


You could use a timer and use CreatePlayerObject to create the objects if the player is in the interior/world you want, but that's basically what the Streamer does.
Reply
#3

CreatePlayerObject creates an object in world/interior that player currently in?
Reply
#4

Quote:
Originally Posted by newbienoob
Посмотреть сообщение
CreatePlayerObject creates an object in world/interior that player currently in?
It's shown to every world and interior, streamer just allows you to use specific worldid and/or interiorid which is recommended to be used.
Reply
#5

Quote:
Originally Posted by newbienoob
Посмотреть сообщение
CreatePlayerObject creates an object in world/interior that player currently in?
No, it creates an object only visible by the player it is created for, therefor you can create the object and show it only to that player while he's in the interior/world you want and destroy it when the player is no longer at that interior - again, that's what the streamer does.
Reply
#6

It can be done without using the streamer, but to do so you would have to replicate the features of the streamer already mentioned here. You could use a timer, or you could hook the relevant functions and callbacks that control interiors and worlds to update the object's visibility as the player moves about.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)