You can create your own Action by selecting “Create Custom Action” while having a Custom Action Node selected.
Use public Expression fields to display Expressions in the inspector.
Simple example:
using RAIN.Representation;
using UnityEngine;
using RAIN.Action;
namespace LordsAndLegends.AI.Actions
{
[RAINAction]
public class DebugLog : RAINAction
{
public Expression Message = new Expression();
public override ActionResult Execute(RAIN.Core.AI ai)
{
Debug.Log(Message.ToString());
return ActionResult.SUCCESS;
}
}
}
The RAINAction class provides several virtual methods you can override.