Code: Select all
ForEach AllVertexes(Level,V)
Draw3DDot(V);2. How can you return out parameters from native script?
Code: Select all
ForEach AllVertexes(Level,V)
Draw3DDot(V);Well your wrong cause it uses special FFrame& Stack to get variables and it gets vars using predefined P_GET_* macros.1: no idea.
2:
All i know is you put a & next to the variable in the function header in c++
Code: Select all
void A::exec (FFrame& Stack, RESULT_DECL)Code: Select all
void
ADNRoot::execReadFile (FFrame& Stack, RESULT_DECL)
{
//FString* FName;
FString ReadHere;
guard (ADNRoot::execReadFile);
P_GET_STR(FName);
P_FINISH;
appLoadFileToString(ReadHere,*FName);
*(FString*)Result=*ReadHere;
unguardexec;
}
Code: Select all
P_GET_ARRAY_REF, P_GET_STR_REF, etc. - used in the exact same way as the P_GET* macros (not the optional macros), and allows parameters to be paseed by reference. For example:
native function Foo( out int x, out int y );
void MyClass::execFoo( FFrame &Stack, void const *Result )
{
guard( MyClass::execFoo );
P_GET_INT_REF( x );
P_GET_INT_REF( x );
P_FINISH;
// Do what we want.
unguard;
}Till 227 is 100% ready i prefer to stay at Gold for following reasons:Not at all. have no real interest in native coding if/when we get 227 headers.