News Forums RAIN Sample Projects, How To, and Code RAIN Action's parameter default value

This topic contains 1 reply, has 2 voices, and was last updated by  Sigil 1 month, 2 weeks ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #38982

    Alex3D
    Participant

    Hi,
    can I set default value for RAINAction’s parameter?
    I’ve tried

    public RAIN.Representation.Expression OnlyForPlayer = new RAIN.Representation.Expression() { ExpressionAsEntered = "true" };

    and has no result.

    #38989

    Sigil
    Keymaster

    Try:

    Expression OnlyForPlayer = ExpressionParser.Parse("true");

    I didn’t test this, but it may work. If it doesn’t let me know and I’ll check it out.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.