mouamle Posted June 9, 2015 Posted June 9, 2015 السلام عليكم ذي الفنكشن createWeapon https://wiki.multitheftauto.com/wiki/CreateWeapon تسوي سلاح حاولت بذا الكود اسوي السلاح يجي مع اللاعب addEventHandler( "onClientRender", getRootElement( ), function() x, y, z = getElementPosition( getLocalPlayer() ) end ) function createMinigunWeapon() x, y, z = getElementPosition( getLocalPlayer() ) weapon = createWeapon("minigun", x, y, z + 3 ) setWeaponClipAmmo(weapon, 99999) setWeaponState(weapon, "firing") setWeaponProperty(weapon, "fire_rotation", 0, -30, 0) end بس في طريقة اخلي السلاح يدور مع زاوية دوران اللاعب ؟ جربت getElementRotation ما نجحت
mouamle Posted June 9, 2015 Author Posted June 9, 2015 attachElements شكرا بس جربت يصير السلاح على جانب اللاعب ما يجي امام اللاعب Edit: صارت شكرا
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now