![]() |
TriggerClient() format
I've been searching for it but can't find it. Can anyone give me an example?
Here's what I currently have: NPC Code:function onCreated() |
On serverside:
triggeraction(0, 0, "clientside", name, "params"); |
It's triggerclient(objecttype, name, params)
Currently only "weapon" works as objecttype, or "gui" which is the same. |
Quote:
NPC Code:player.triggerclient(weaponname,actionname,params) ; Is what I've been using, and it seems to work. |
Evil, Stefan's post was at Yesterday, 12:00 AM and Jagen's was at Yesterday, 09:24 AM, what is going on?!
|
Quote:
python523: Yesterday 08:24 AM |
Quote:
NPC Code:function onCreated() Would this be correct? |
its triggerclient("gui",weaponname,param1,param2);
Your problem is that you are expecting it to work like triggeraction and it does not. It will be: NPC Code: |
triggerclient(npcname, params); works for me.
|
Quote:
Either way, triggerclient(objtype,name,params) is the 100% correct format. |
Quote:
Quote:
Quote:
|
Quote:
|
Quote:
|
| All times are GMT +2. The time now is 07:49 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.