[Opensim-users] One object sending a method to another

Fish Kungfu fish.kungfu at gmail.com
Tue Apr 5 09:24:18 UTC 2011


Depending on exactly what you want to accomplish, you might want to look at
some of the AI swarm/flock/school scripts.  Here is one:
http://slconceptual.wordpress.com/2007/05/17/lsl-swarm-script-for-second-life-make-birds-butterflies-etc/
On Apr 5, 2011 5:19 AM, "Toni Alatalo" <toni at playsign.net> wrote:
> On Apr 5, 2011, at 12:07 PM, Simon Slavin wrote:
>> Apparently the best method to do this is to pick a communications
channel, implement a listener for each object and work out a common language
they can all speak. Does anyone know a better way of doing it ?
>
> AFAIK this is the only way in LSL.
>
> With Opensim, however, you also have the option to do it with normal
programming .. where can just have all the objects in one application and
let them call each other however they want etc. In a region module.
>
> For example this opensim region module creates a lot of objects in the
code, and keeps references to the objects in the main app class, so can just
call methods in them like in normal programming: self.tree =
self.initTree("naali") etc. in
http://code.google.com/p/rexprojectspace/source/browse/trunk/rexprojectspacemodule.py
>
>> Simon.
>
> ~Toni
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://opensimulator.org/pipermail/opensim-users/attachments/20110405/35e0a0be/attachment.html>


More information about the Opensim-users mailing list