New AI Barks

The best and quickest support by a group of top-notch editing specialists, guaranteed!

Moderator: Forum Guards

New AI Barks

Postby SimonDenton » Sat Aug 11, 12 1:15 pm

Hey all,

To avoid rewriting pretty much EVERYTHING for my mod by modifying Actor.uc I decided to make my own enumeration for ai barks:
Code: Select all
enum summerBarks
{
BM_Idle,

etc...

};

var summerBarks sB;

within SUMMERBARKMANAGER.uc

Now, in my playerclass I do a custom AIBark function for my custom scriptedpawn to do:
Code: Select all
function bool SummerStartAIBarkConversation(Actor conOwner,summerBarks sB)
{
   if ((conOwner == None) || (conOwner.conListItems == None) || (barkManager == None) ||
      ((conPlay != None) && (conPlay.con.bFirstPerson != True)))
      return False;
   else
      return (barkManager.StartBark(DeusExRootWindow(rootWindow), ScriptedPawn(conOwner), sB));
}


I get the error:Error, Unrecognized type 'summerBarks'. If I declare summerBarks as declaredSummerBarkManager.summerBarks I get "Missing variable name" :/

Help would be greatly appreciated!
SimonDenton
Wannabe
 
Posts: 117
Joined: Sun Oct 03, 10 12:06 pm

Postby SimonDenton » Sun Oct 28, 12 12:50 am

It seems that the engine has a limitation for enumerations which only can be used with one class under another :/
SimonDenton
Wannabe
 
Posts: 117
Joined: Sun Oct 03, 10 12:06 pm


Return to Editing issues

Who is online

Users browsing this forum: No registered users and 20 guests
cron