Page 1 of 1

Determining the link-in point?

PostPosted: Thu Aug 07, 2008 9:33 am
by Robert The Rebuilder
I need to determine the spawn point used by a player in Python once the age loads. This would apply to Ahra Pahts, which currently assumes that someone links in at the default. However, given that you have the ability to configure ULM to link in at an arbitrary point (as di gama had discovered), this means that you can link in to a portion of the city where no shells have been paged in.

So, what's the Plasma Python call to determine the link-in point object?

Re: Determining the link-in point?

PostPosted: Thu Aug 07, 2008 9:56 am
by D'Lanor
There are several methods but here is one that would work for the age owner as well as visitors to the age.

Code: Select all
        linkmgr = ptNetLinkingMgr()
        link = linkmgr.getCurrAgeLink()
        spawnPoint = link.getSpawnPoint()
        spTitle = spawnPoint.getTitle()
        spName = spawnPoint.getName()
        if (spName == 'LinkInPointDefault'):
            print 'you linked in at the default location'

Re: Determining the link-in point?

PostPosted: Fri Aug 08, 2008 12:50 pm
by Robert The Rebuilder
Thanks, D'Lanor - I'll give that a try when I get home.

[EDIT 8/8] Yes! That worked! I'll make sure that goes into v1, to support arbitrary link-in points. Thanks again!