[Include] OnPlayerTouchOBJ - 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: Filterscripts (
https://sampforum.blast.hk/forumdisplay.php?fid=17)
+---- Forum: Includes (
https://sampforum.blast.hk/forumdisplay.php?fid=83)
+---- Thread: [Include] OnPlayerTouchOBJ (
/showthread.php?tid=493074)
OnPlayerTouchOBJ -
liguanhua123 - 06.02.2014
Creating a dynamic touch OBJ
CreateTouchOBJ(modelid,x,y,z,rx,ry,rz,world,interi or,streamdistance,touchdistance);
PHP код:
CreateTouchOBJ(modelid,Float:x,Float:y,Float:z,Float:rx,Float:ry,Float:rz,objworld,objin,Float:streamdistance,touchstreamdistance);
When the player touches the OBJ,Do something ..
PHP код:
public OnPlayerTouchOBJ(playerid,OBJID,MODELID)
Download:
solidfiles
thanks to
Streamer by Icognito
YSI by ******
Re: OnPlayerTouchOBJ -
Cameryn - 06.02.2014
Post it on pastebin. I don't trust ".rar" files.
Re: OnPlayerTouchOBJ -
Pottus - 06.02.2014
You used the streamer fine and dandy but use dynamic areas to detect when a player touches an object no point of using your OnPlayerUpdate().
Re: OnPlayerTouchOBJ -
liguanhua123 - 06.02.2014
Quote:
Originally Posted by [uL]Pottus
You used the streamer fine and dandy but use dynamic areas to detect when a player touches an object no point of using your OnPlayerUpdate().
|
I do not know,if multiple dynamic regions covering each other, to get from the center of the recent dynamic 'area? Forgive my bad English
Re: OnPlayerTouchOBJ -
Wizz123 - 07.02.2014
Quote:
Originally Posted by liguanhua123
I do not know,if multiple dynamic regions covering each other, to get from the center of the recent dynamic 'area? Forgive my bad English
|
Regions only convert with each other when the dynamic area is there, as pottus said there is no point of using the OnPlayerUpdate function.