Jump to content

Cloack Little problem


IIYAMA

Recommended Posts

  • Moderators

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 :D

Link to comment

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

Link to comment
  • Moderators
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...

Link to comment

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

Link to comment

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.

Link to comment
  • Moderators

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

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...