Change weapon mesh dynamically?

  • Two Factor Authentication is now available on BeyondUnreal Forums. To configure it, visit your Profile and look for the "Two Step Verification" option on the left side. We can send codes via email (may be slower) or you can set up any TOTP Authenticator app on your phone (Authy, Google Authenticator, etc) to deliver codes. It is highly recommended that you configure this to keep your account safe.

SuperDre

New Member
May 6, 2002
254
0
0
Helmond.nl
www.superteam.tk
Hi,

Is there a way to change the Weapon mesh on runtime? Damn Epic made the Weapon.Mesh a const so Weapon.Mesh = Mesh(DynamicLoadObject("MyAnimPackage.MyWeaponAnim01", class'Mesh')); doesn't work..

I have 2 (or more) weapon anims and I want to switch between them based on some criteria..
 

Shambler[sixpack]

New Member
May 3, 2001
564
0
0
Ireland
Visit site
In Actor.uc

Code:
native final function SetStaticMesh(StaticMesh NewStaticMesh);
simulated native final function LinkSkelAnim( MeshAnimation Anim, optional mesh NewMesh );
simulated native final function LinkMesh( mesh NewMesh, optional bool bKeepAnim );