Archive 17/01/2023.

Angelscript References to Basic Types

SirNate0

Is there a way to Execute() an angelscript function with a basic type (bool, int, etc.) as a reference, e.g.

//CPP
Variant boolean = true;
v.Push(cont);
scriptFile_->Execute(“void Test(bool &out test)”,v);

//Angelscript file
void Reenter(bool &out test)
{
test = false;
return;
}

cadaver

Not right now, but looks possible to add, using the SetArgAddress function.