Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- simulated function UpgradeWeapon()
- {
- if(CanUpgradeWeapon())
- {
- SetWeaponUpgradeLevel(CurrentWeaponUpgradeIndex + 1);
- DetachWeapon();
- AttachWeaponTo( Instigator.Mesh );
- }
- }
- simulated function AttachWeaponTo( SkeletalMeshComponent MeshCpnt, optional Name SocketName )
- {
- if ( MySkelMesh != None && CanUpgradeWeapon() )
- {
- if ( CurrentWeaponUpgradeIndex == 1 )
- {
- MySkelMesh.SetSkeletalMesh(SkeletalMesh'WEP_1P_AK74U_MESH.AK74U_Rig');
- }
- else if ( CurrentWeaponUpgradeIndex == 2 )
- {
- MySkelMesh.SetSkeletalMesh(SkeletalMesh'WEP_1P_AK74U_MESH.AK74U_Rig');
- }
- }
- super.AttachWeaponTo(MeshCpnt, SocketName);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement