Code: Select all
#exec NEW <factoryclass> PACKAGE=<packagename> Name=<newobjectname> [Factory-specific parameters follow]
Code: Select all
#exec NEW <factoryclass> PACKAGE=<packagename> Name=<newobjectname> [Factory-specific parameters follow]
Code: Select all
#exec NEW MUSICFACTORY FILE="path\to\file.it" NAME="MusicName"
Code: Select all
#exec NEW TRUETYPEFONTFACTORY NAME=FontName_in_UT FONTNAME="FontName_as_installed_in_the_system" HEIGHT=32 ANTIAlIAS=TRUE
Code: Select all
#exec NEW MODELFACTORY NAME=ModelName FILE=Path\To\File.t3d
Code: Select all
StaticImportObject( UClass* Class, UObject* InOuter, FName Name, DWORD Flags, const TCHAR* Filename=TEXT(""), UObject* Context=NULL, UFactory* Factory=NULL, const TCHAR* Parms=NULL, FFeedbackContext* Warn=GWarn );
So, this is how Meshmaker is working then?comoestas wrote:Thanks guys.
Another, more powerful one:Code: Select all
#exec NEW MODELFACTORY NAME=ModelName FILE=Path\To\File.t3d
I didn't know that import existed at exec level (makes sense it exists though), very nice find.comoestas wrote: Another, more powerful one:I have used this to import .t3d brush into my project as a model object. Now, I haven't figure out how to use this object successfully, but its there. I might need to use some of the other params.Code: Select all
#exec NEW MODELFACTORY NAME=ModelName FILE=Path\To\File.t3d
Code: Select all
var model SomeModel;
[...]
SomeModel = Model'ModelName';
If only it was this easy. When I apply it to a mover, if the mover is hidden, I don't even know if it worked(no collision, nothing). If I apply when it visible, it crashes:Feralidragon wrote:Code: Select all
var model SomeModel; [...] SomeModel = Model'ModelName';
Code: Select all
Critical: FMovingBrushTracker::ForceGroupFlush
Critical: FMovingBrushTracker::ForceGroupFlush
[...]
Critical: FMovingBrushTracker::Update
Critical: URender::SetupDynamics
Critical: URender::OccludeFrame
Log: URender::DrawWorld anomaly
Critical: URender::OccludeBsp
Critical: URender::OccludeFrame
Log: URender::DrawWorld anomaly
[...]
Log: URender::DrawWorld anomaly