I've subclassed pawn to create a new type of "navPoint", which can define areas of cover, overwatch positions, etc.
I want to have a class which will keep an array of these points. In its simplest form, it is a placeable actor which has an array of my navPoints.
Each bot controller would have a reference to this class, which would be used to find nearby points of interest (say, in state 'Patrolling' or 'Seeking Cover').
However, here's where I come up against a brick wall. If it's placeable, then how do I get access to it? If (as I would rather do), I create an instance of the class and fill its array of NavPoints upon level start, where do I do that?
Would I do that in GameInfo, say in BeginPlay(), then have my bots grab a reference to it in PostBeginPlay()?
My question then, is how and where to create an instance of a new class so that it is script accessible, and once it is instanced, how to set a reference to it.



Reply With Quote


![Send a message via ICQ to Blade[UG]](images/styles/TwistedDark/misc/im_icq.gif)
![Send a message via AIM to Blade[UG]](images/styles/TwistedDark/misc/im_aim.gif)
![Send a message via MSN to Blade[UG]](images/styles/TwistedDark/misc/im_msn.gif)
![Send a message via Yahoo to Blade[UG]](images/styles/TwistedDark/misc/im_yahoo.gif)



Bookmarks