![]() |
Triggeraction Problems
I'm using a DB NPC, I need to trigger it from a class that the DB NPC is joined to.
The DB NPC's image is block.png Here's the trigger (clientside) PHP Code:
PHP Code:
|
When using triggeraction() in a class, it will go serverside..
So when on serverside in the class, use findnpc().. :) |
Quote:
Basicly the local NPCs will have the exact same script ... |
Quote:
Have local NPCs join the class that is triggering to the DB NPC. |
Use classes and join them in the Local NPC and use this code to trigger between the DB NPC and the class:
PHP Code:
|
Let me try to explain ...
screw the DB NPC. I have a local NPC that joins the shop item class. The class does everything right, then it triggers, but it doesn't receive the trigger on serverside. |
Quote:
It needs a shape to recieve the trigger.. |
Quote:
Posting the code does help... |
Quote:
We have no idea if what you are doing serverside is correct or it does have a shape.. |
The class
PHP Code:
PHP Code:
|
Set the shape of the NPC then trigger the action on itself.
Shape must be set on serverside. |
Quote:
|
| All times are GMT +2. The time now is 08:12 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.