![]() |
Clicking on players
Can someone help me with a script that will show an image kinda like attributes. when you click on a player, it shows an image and text over the player you clicked on. im completely lost.
|
use testplayer to find the index if you clicked over someone, then if you're using built-in variables, do like players[index].hearts
|
well, lets see, what kind of informaiton would you want displayed??
have a range of what of the mousex and mousey test the player under the mouse to get the index of the clickee use with () to access the the clickee's string to be displayed display clientside for the clicker timeout for bla seconds hide the displayed information |
testplayer doesn't seem to work without an npc server.... ?
|
???
it worked for me, i placed npc characters around the level and had a npc display the index of what character was under the mouse worked fine |
send me that, i'm an aspiring scripter and i've never used testplayer :p
|
Quote:
try it online friend. with players not npc's. |
Quote:
never tried without npc server though :( |
Quote:
I can't double check becouse Doomsday is missing. |
Quote:
if (actionleftmouse) {testplayer mousex,mousey;} or something like that i havent looked at the commands lately |
| All times are GMT +2. The time now is 06:02 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.