SA-MP Forums Archive
How to define the interior of an object? - 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: How to define the interior of an object? (/showthread.php?tid=627099)



How to define the interior of an object? - SukMathcuck - 23.01.2017

Hello, I am creating a map, but I have a problem, I can not sit inside the map, for example, it is located on a property in Las Venturas, and it is possible to see the map, a plane can hit there, Does anyone know how I can sit inside the objects on this map and display the objects only if I have the same interior of the player?


Re: How to define the interior of an object? - IceCube! - 23.01.2017

pawn Код:
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, STREAMER_TAG_AREA areaid = STREAMER_TAG_AREA -1, priority = 0);
If your using Incognitos streamer you can set the interior, of the object at it's creation. This mean you now only have to deal with the player and what interior they are in.

I'm also not sure if I understood your question, so do say if I am wrong.