![]() |
NPC Drop w/ value
How do I set the text in the NPC of a clientr.var.
Here is the NPC script PHP Code:
and the place script PHP Code:
|
Firstly, there's some things you could improve with your code. There's not really any consitancy with your styling, and instead of using a timeout you can use scheduleEvent()
Secondly, you just have to set the text of the NPC to what you want it to say using this.chat; PHP Code:
|
There's no player within the scope of onCreated on the server-side.
If there is a player in the scope that is creating the NPC, then you can do e.g., temp.npc.chat = player.clientr.hp;. |
Quote:
so npcA is creating npcB but I want it to display the player who touched npcA their hp. Doesn't it have to do with params? |
Quote:
|
Quote:
|
Quote:
You could also just do temp.npc.showtext(...), if you wanted. |
| All times are GMT +2. The time now is 06:57 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.