Quote:
Originally Posted by Zanzel
Oh, really.. Thanks, the way Malora has its spells set up I think each spell is a class and well that wont work too well if that is the case xD
Well Maloria has hit a bump in the road this time until something's sorted out;
Thanks anyway Skyld.
|
If it's the correct object, why can't you just trigger the object? If it's not the correct object, why don't you just define some functions in a weapon and trigger that weapon?
For example, if you have a block in a level and you need to trigger it from clientside to serverside you could just put this in the class it's joined to:
PHP Code:
function onCreated() {
setshape(1, 32, 32);
}
function onActionTrigger() {
chat = params[0];
}
//#CLIENTSIDE
function onPlayerTouchsme() {
triggeraction(this.x + 0.5, this.y + 0.5, "Trigger", "hi");
}