Re: Messaging (was: Possible bug in system node -11)
Status: Alpha
Brought to you by:
cwalther
|
From: James C. W. <jfc...@ya...> - 2011-10-26 19:47:15
|
Is this what you meant?
Including this in node 34:
onenternode(function() medCtr_recordsRoom = pipmak.thisnode() end)
And the message to 34:
medCtr_recordsRoom:message("lightFlicker")
If I do that pipmak says medCtr_recordsRoom has no "message" function.
Thanks,
James
--- On Sat, 10/22/11, Christian Walther <cwa...@gm...> wrote:
From: Christian Walther <cwa...@gm...>
Subject: Re: Messaging (was: Possible bug in system node -11)
To: "Content creation for the Pipmak Game Engine" <pip...@li...>
Date: Saturday, October 22, 2011, 6:38 AM
> One other thing: I'm not certain how the messaging system works. How do I tell pipmak which node to contact? If I just do "34:message(lightFlicker)" or "34:getid():message(lightflicker)" pipmak says "unexpected symbol near 34", both times.
34 is a number and doesn't have a "message" method (numbers don't have methods at all, which explains the error message). What you want is the node object that represents node 34. How to obtain that depends on how you displayed node 34 - see section 3.6.3 "Node Objects" in the manual. (If node 34 is not being displayed, no node object for it exists and you can't message it.)
-Christian
------------------------------------------------------------------------------
The demand for IT networking professionals continues to grow, and the
demand for specialized networking skills is growing even more rapidly.
Take a complimentary Learning@Cisco Self-Assessment and learn
about Cisco certifications, training, and career opportunities.
http://p.sf.net/sfu/cisco-dev2dev
_______________________________________________
Pipmak-Users mailing list
Pip...@li...
news://news.gmane.org/gmane.games.devel.pipmak.user
https://lists.sourceforge.net/lists/listinfo/pipmak-users
|