Can I Pass a Number into an Extension?

I’m trying to create an extension that applies a score value. I have a ScoreIncrement number variable that I’m planning on changing the value of depending on where I call the extension, but when I try to use the parameter as an expression in the extension’s “Change the scene variable” Action, it won’t let me use it.

Does anyone know why this is happening?

Screen Shot 2022-10-03 at 2.25.15 PM

It looks like you have score instead of Variable(score)

Edit: MrMen is right. You need
GetArgumentAsNumber(“Score”) for functions.

Is that statement in the Extension and the parameter is named Score? Then you need to use GetArgumentAsNumber(“Score”) instead of just “Score”.

1 Like

This worked perfectly! Thanks!