SA-MP Forums Archive
detect again - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: detect again (/showthread.php?tid=164596)



detect again - willsuckformoney - 01.08.2010

how to detect if a player touches a object ?


Re: detect again - willsuckformoney - 01.08.2010

* willsuckformoney Durps the topic


Re: detect again - Souvlaki - 01.08.2010

I don't think that you can actually


Re: detect again - willsuckformoney - 01.08.2010

sure? not like

pawn Код:
//at top
new shark;

//OnGameModeInIt
shark = CreateObject(blablablablalbbal);

then something onplayerspawn or something to make something happens



Re: detect again - Kar - 01.08.2010

yea u can like that. but the samp objects would be harder to detect LOL


Re: detect again - willsuckformoney - 01.08.2010

lol ok ok


Re: detect again - willsuckformoney - 01.08.2010

Quote:
Originally Posted by Hoborific
Посмотреть сообщение
Unless the object is moving can't you get the XYZ of object and if player >= 30) then........ (thats my newbie opinion but something would have to trigger the check or a timer of some sort.)
tehe thats what i was gonna do make moving NPC or something but put a shark over it or something xD


Re: detect again - cessil - 01.08.2010

why have an npc and put a shark over it? you could just move the object and use a timer to check if any players are within x units of the object