Weapon Meshes

Discussions about Coding and Scripting
Post Reply
User avatar
deuxsonic
Novice
Posts: 11
Joined: Sun Mar 03, 2019 4:56 pm
Personal rank: Unreal!
Location: Ohio, USA, Earth

Weapon Meshes

Post by deuxsonic »

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?
JackGriffin
Godlike
Posts: 3774
Joined: Fri Jan 14, 2011 1:53 pm
Personal rank: -Retired-

Re: Weapon Meshes

Post by JackGriffin »

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
User avatar
deuxsonic
Novice
Posts: 11
Joined: Sun Mar 03, 2019 4:56 pm
Personal rank: Unreal!
Location: Ohio, USA, Earth

Re: Weapon Meshes

Post by deuxsonic »

How do you control which axis it's mirrored along?
JackGriffin
Godlike
Posts: 3774
Joined: Fri Jan 14, 2011 1:53 pm
Personal rank: -Retired-

Re: Weapon Meshes

Post by JackGriffin »

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
Post Reply