SetAnchor()

Get Help on scripting in POL with configurations, config setups, script trouble shooting, etc.
Post Reply
User avatar
*Edwards
Forum Regular
Posts: 303
Joined: Fri Dec 28, 2007 11:19 pm

SetAnchor()

Post by *Edwards »

I wonder how this function is working exactly.. I scripted my project using the distro097 and I found out last weekend that in a dungeon every monsters were wandering, all regroup in a corner of Destard... Anyways, I tried to implement the SetAnchor function in the BrainAI system but cannot find where to put it... I tried to place it in the init/generic it compiles and everything so when I test it the monsters are insta-killed due to a function from the package.. the error returned gives no valid information so I really dont know where to put it at all... I could place it in the main brain.src but I do not want my merchants to have an anchor since they do not move...
User avatar
Austin
Former Developer
Posts: 621
Joined: Wed Jan 25, 2006 2:30 am

Re: SetAnchor()

Post by Austin »

The anchor has to do with wandering. If they are outside, the wander() function, will aim towards having them move back into their anchor box. If they are inside it, they won't wander outside of it. The Move related functions will allow them to leave the anchor.
User avatar
*Edwards
Forum Regular
Posts: 303
Joined: Fri Dec 28, 2007 11:19 pm

Re: SetAnchor()

Post by *Edwards »

Thanks Austin.
Post Reply