Quote:
Originally Posted by xXziroXx
Script in level..
Script of interaction_shop..
The addon_interaction class calls the function "interactionShop" when the npc is clicked, and so far so good.. the action "GetData" is sent by the interaction _shop class BUT I cant send the data back from serverside to clientside no mather how I try..
I would preffer solving it with actions or something, I'd hate to have to use a timeout and attr's.
|
Does interaction_shop have a shape?
Also, when you do
for(class: this.interaction.modes)
it'll join two classes (interaction_shop and interaction_leave) as I see it (dunno if that what it is suppose to do..)
And have you tried:
PHP Code:
function onActionGetData()
{
triggerAction(this.x, this.y, "clientside", "test");
}
instead of
PHP Code:
function onActionGetData()
{
triggerAction(x, y, "clientside", "test");
}
?