Jump to content

Dayz New weapons


stefutz101

Recommended Posts

Similar question asked a bit ago, only thing I can think of is it load a different txd / dff file if a person is in range of the gun. But that would replace all guns in range, other then that I'm not sure unless you were to attach a custom model to the persons hand when the gun is out and replacing the original gun with an invisible model, finding the object of the gun that the person is holding is near impossible, from what I know.

Link to comment

If i replace m4 id ( 31 ) to another one i have errors in debugscript when i'm trying to equip weapon .

(bad arg "giveweapon"[expected weapon-type at argument 2, got number "1208"). So yah i want to change m4 id ( 31 ) in 1208 ( a washing machine ) .

Ok .

So for replace model i know how :

--m4     
    txd = engineLoadTXD ( "weapons/m4.txd" ) 
    engineImportTXD ( txd, 1208 )     
    dff = engineLoadDFF ( "weapons/m4.dff", 1208 ) 
    engineReplaceModel ( dff, 1208 ) 

But i dont know where i must change the m4 id ... .

Pickups.lua

M4 Test",356,1,90,2.4}, 
 

Here ?

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...