Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function eventEmotePlayed(playerName,id)
- local xp=tfm.get.room.playerList[playerName].x
- local yp=tfm.get.room.playerList[playerName].y
- if id==3 then
- drawCircle({{x=xp,y=yp},{x=xp+50,y=yp+50},5})
- end
- end
- function drawCircle(arg)
- local point1,point2,particle=arg[1],arg[2],arg[3]
- r=sqrt(pow((point1.x-point2.x),2)+pow((point1.y-point2.y),2))
- res=1-r*pow(10,-2)
- if(res<0.1)then res =0.04 end
- for i=0,2*math.pi,res do
- tfm.exec.displayParticle(particle,point1.x+r*cos(i),point1.y+r*sin(i),random(-1,1),random(-1,1),0,0)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement