View Full Version : Attach weapon to vehicle
05-30-2010, 03:59 PM
Hi, i'm beginner in UDK. I have created working custom vehicle with my UTVehicleWeapon class. I know how to add static mesh of weapon to vehicle but then i can't add muzzle flash ps because there are no sockets in weapon. I can use diferent skeleton mesh of vehicle with turret but i want to be able to change vehicle's weapon. So my question is how can i create VehicleWeapon class with SkeletonMesh ? :)
05-30-2010, 05:22 PM
First, of all, I have no idea what you are trying to say in the second half of your statement because it just doesn't make sense, so I'm just going to guess.
Add a socket to the weapon you are trying to a muzzle flash too and in the code link the muzzle flash particle effect (or w/e you are using) to this socket.
05-30-2010, 06:05 PM
you mean something like adding the link gun for example?
im not sure how exactly but you can add skelital meshs together using sockets
have a look at how its done with the player character and the weapons
WeaponSocket or something
Powered by vBulletin® Version 4.2.0 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.