Adding a Native Function
RED4ext Snippets
void GetNumber(RED4ext::IScriptable* aContext, RED4ext::CStackFrame* aFrame,
float* aOut, int64_t a4)
{
RED4ext::Vector4 worldPosition;
int32_t count;
RED4ext::GetParameter(aFrame, &worldPosition);
RED4ext::GetParameter(aFrame, &count);
aFrame->code++; // skip ParamEnd
if (aOut)
{
*aOut = 6.25;
}
}Redscript Snippets
Last updated