Well, is it possible to do this?
Actually the 'this.wnpc' is from variable saved on the player, that was just an example.
Just wondering if it is possible, would make my work easier :O
(I am planning on having one master script to control other wnpcs (each wnpc with a different ability/functons etc.), so making lots of public functions inside the master script would just look messy)
The stuff I am doing would look more like,.. :
PHP Code:
//#CLIENTSIDE
function _trigger( wnpc, function, array)
triggerserver( "gui", temp.wnpc, temp.function, temp.array;