MongooseWhere programmers kick back and build silly things together.

coding notes

All public mailing lists

#1:enterfunc/#1:loc_enter

2006-06-24 00:03 UTC · kamahl (#2259)

I have made a verb on #1's enterfunc (#1:loc_enter).

It's purpose is to allow contents to be notified on entering of their location/s.

the args are as follows: {what, where, distance}

what = the object that entered

where = what's location as of the enterfunc

distance = how many times it's been called. (an object in me will recive 2 when I walk ((room), me, it)

distance should be used if you don't want something 5 layers down to activate.

Let's say you're holding an area, and somebody walks in with you. you don't want that de-activating the autopilot on a ship. :P

Anyone else has uses, post them!

~kamahl

Back to coding notes