MongooseWhere programmers kick back and build silly things together.

General

All public mailing lists

mapping props

2008-03-12 15:24 UTC · Daiverd (#2)

I thought I'd bring to your attention property mapping on $list_utils

$list_utils:map_prop(obj list, "propname str")

to get the locations of all connected players

$list_utils:map_prop(connected_players(), "location")

put that inside a $list_utils:remove_duplicates and there you go. no more for i in connected players i.location, etc

Back to General