Moderators IIYAMA Posted January 30, 2012 Moderators Posted January 30, 2012 I have little problem. I want to make a player really invisible(alpha 0). But I don't know how to set this ped/player his weapon to a element. Anybody have same problem or know how to do this. Pls let me know. Greetings IIYAMA
CapY Posted January 30, 2012 Posted January 30, 2012 setElementAlpha setPlayerNametagShowing isPlayerNametagShowing
Moderators IIYAMA Posted January 30, 2012 Author Moderators Posted January 30, 2012 Nope, I am talking about the player his weapon not his name.
CapY Posted January 30, 2012 Posted January 30, 2012 Nope, I am talking about the player his weapon not his name. setElementAlpha
Moderators IIYAMA Posted January 30, 2012 Author Moderators Posted January 30, 2012 yes how to get this element? Because element is the weapon and not the ped. getelementpedweapon lol
CapY Posted January 30, 2012 Posted January 30, 2012 The pickup represents weapon, health and so on.. https://wiki.multitheftauto.com/wiki/Element/Pickup
Moderators IIYAMA Posted January 30, 2012 Author Moderators Posted January 30, 2012 yes but how do I get this weapon.... This weapon is in the hands of a player. It has not be made as a element. It is just the weapon...
BinSlayer1 Posted January 30, 2012 Posted January 30, 2012 Rofl CapY, that returns an INTEGER. @IIYAMA: You can't set the visibility of a weapon since weapons aren't elements You'll need a workaround.. You could maybe force his weapons off when the player visibility is changed and save his weapons and ammo in an array and once you've set his visibility back on then give the player his weapons back
Moderators IIYAMA Posted January 30, 2012 Author Moderators Posted January 30, 2012 Rofl CapY, that returns an INTEGER.@IIYAMA: You can't set the visibility of a weapon since weapons aren't elements You'll need a workaround.. You could maybe force his weapons off when the player visibility is changed and save his weapons and ammo in an array and once you've set his visibility back on then give the player his weapons back Thx BinSlayer1, finnaly I got the right awnser. Also thx Capy for trying to help me. grr stuppit mta...
BinSlayer1 Posted January 30, 2012 Posted January 30, 2012 grr stuppit mta... I wouldn't blame MTA. It just wasn't designed to fit ALL your purposes/needs but it still offers the best customization yet for San Andreas Even if you can't do everything you want in MTA directly you could find workarounds or even help the developers improve it. E.g: I'd like to set ped stats to all characters not just CJ (fat/muscle/etc) but that's just not been done yet and I'm not blaming anyone
DiSaMe Posted January 30, 2012 Posted January 30, 2012 There's a way to workaround this. First, make all weapons invisible by replacing DFFs or TXDs with empty/transparent ones. Then replace some unnecessary object models and textures with original weapon models and textures from the game. And finally, you need to create objects with these models and attach them to player's hands, so they will look like regular weapons, but they will be MTA elements and you will be able to control their visibility. To attach objects to player hands, you can either use getPedBonePosition and some calculations to get rotations of bones or include this resource, where the job has been done for you, and use its functions.
Moderators IIYAMA Posted January 30, 2012 Author Moderators Posted January 30, 2012 yes know that bone_attach script. This will be to hard to make. I can't work with ultimate editor and also my virus scan put it in quarantain. thx for helping all, but I have to change my idea's. THX thx THX thx
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