Weapon Meshes

Discussions about Coding and Scripting

Weapon Meshes

Postby deuxsonic » Wed Mar 20, 2019 2:26 am

I'm curious if there is a way through the UnrealScript to flip a mesh along an axis. Is it maybe something I'm missing in Default Properties?
User avatar
deuxsonic
Novice
 
Posts: 11
Joined: Sun Mar 03, 2019 4:56 pm
Location: Ohio, USA, Earth
Personal rank: Unreal!

Re: Weapon Meshes

Postby JackGriffin » Wed Mar 20, 2019 4:37 am

The easiest way I've found is to export the model then import it back in as a mirrored mesh. This is an example from Food Fight:

#exec MESH IMPORT MESH=SaladBagM ANIVFILE=MODELS\SaladBag_a.3d DATAFILE=MODELS\SaladBag_d.3d LODSTYLE=10 UnMirror=1

That last bit is the magic.
So long, and thanks for all the fish
JackGriffin
Godlike
 
Posts: 3766
Joined: Fri Jan 14, 2011 1:53 pm
Personal rank: -Retired-

Re: Weapon Meshes

Postby deuxsonic » Wed Mar 20, 2019 4:48 am

How do you control which axis it's mirrored along?
User avatar
deuxsonic
Novice
 
Posts: 11
Joined: Sun Mar 03, 2019 4:56 pm
Location: Ohio, USA, Earth
Personal rank: Unreal!

Re: Weapon Meshes

Postby JackGriffin » Wed Mar 20, 2019 2:38 pm

You can't (as far as I know) specify the axis. That would require exporting to Blender and flipping it, which is probably the route you should take so you have fine grain control. Is this a static mesh or is it animated?

If you go that route it's best to use UModel for your mesh exporting. I've run into a ton of bugs using batchexport, WOTgreal, etc.
So long, and thanks for all the fish
JackGriffin
Godlike
 
Posts: 3766
Joined: Fri Jan 14, 2011 1:53 pm
Personal rank: -Retired-


Return to Coding, Scripting

Who is online

Users browsing this forum: No registered users and 5 guests