[Include] OnPlayerTouchOBJ
#1

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 ******
Reply
#2

Post it on pastebin. I don't trust ".rar" files.
Reply
#3

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().
Reply
#4

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
Reply
#5

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)