Skip to content

Blueprint functions returning tuple for single return param, input arrays forced as out params #661

Open
@SatansFather

Description

@SatansFather

Calling a blueprint function with a return value results in having to syntax it as follows:

newvar = uobject.somefunction()[0]

Even if there is only one return value, a tuple is returned.

I also ran into an issue with input arrays always being return as out parameters, so the previous function would need to be written differently to get the return value:

newvar = uobject.somefunction(['listelement1', 'listelement2'])[1]

Is there some way to disable this at the expense of allowing multiple return values? I'm okay with losing that functionality considering I'm using this plugin to allow users to create mods, and I think the awkward syntax caused by returning tuples will only lead to confusion among modders.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions