GetObjectPos with id - 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: GetObjectPos with id (
/showthread.php?tid=633798)
GetObjectPos with id -
YouHack - 07.05.2017
Hello,
How to get the ID of the object to get the position of.
( P.s.: I'm noot fool to ask this sort of questions, I'm talking about stock objects from singleplayer map. Not custom maps ( CreateObject or CreateDynamicObject ) simply I want to know HOW to find the ID of an object like that RemoveBuildingForPlayer!! )
Re: GetObjectPos with id -
Vince - 07.05.2017
That's not possible. Modelid is distinctly different from objectid and the default map doesn't handle objectids at all. The default map is just lines in text files that tell the game to place an object with model X on position Y. The same model (e.g. trees, fences, ...) can be placed multiple times.
Re: GetObjectPos with id -
YouHack - 07.05.2017
In radius might be possible?
Re: GetObjectPos with id -
ShihabSoft - 07.05.2017
Btw you don't need to find an object id to be used RemoveBuildingForPlayer, instead just use it's model id and the position coords.
Re: GetObjectPos with id -
YouHack - 07.05.2017
Oh god.... RemoveBuildingForPlayer is just an example