PDA

View Full Version : Double menu path (scripting)


MDM
11th Jul 2012, 02:40 PM
Ok, let's see if I can explain what I want to do :

1) Click on the object
2) Pie menu appears -> string1, string2, string3...
3) Clicking string1 and 2 will perform the interactions.
4) Clicking on string3... another pie menu appears -> substring1, substring2, etc...

So, basically a double menu path, cos I want to group a few interactions in 1 path while being inside the main path, a path inside a path, if that makes sense.

Is there a way to do this? Or is it more complicated than it sounds?

EDIT : Nevermind, I apparently solved it, I tested it ingame and it works, so if anyone needs to do it, this is how you do it :

public override string[] GetPath(bool isFemale)
{
return new string[]
{
"Main Path...",
"Second Path..."
};
}

I used this in the interactions I wanted to group for the second path, while the ones I wanted outside only have "Main Path..." in the array :)