• How can I duplicate an entity?
    3 replies, posted
I want to duplicate an entity, but I want the entity to have the properties of a prop. I want it to be able to copy the animations of the entity along with an animated texture if it has that, but have no code other than the copying of that entities looks. I would like this to work with ragdolls as well.
Cool, show us your code so far. Also next time please don't come here talking like you're ordering something from fast food.
function ENT:Initialize() self:SetModel( originalprop:GetModel() ) self:SetMaterial( originalprop:GetMaterial() ) self:SetMoveType( MOVETYPE_PUSH ) end As you can see I don't really know how to start... Getting the model and current texture is simple and will work perfectly for basic stuff, but I don't know how to make it update the model with the correct timings for the model and texture animations. Is it possible to get something like an image of the current texture of the original entity and just apply it to the fake prop rather than using a texture?
bump
Sorry, you need to Log In to post a reply to this thread.