Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to add Weapons (method) #29

Open
0f1 opened this issue Jan 15, 2023 · 2 comments
Open

How to add Weapons (method) #29

0f1 opened this issue Jan 15, 2023 · 2 comments
Labels
question Further information is requested

Comments

@0f1
Copy link

0f1 commented Jan 15, 2023

i wanted to know if it's possible to add weapons ? tried to add it as a object but it needs a collision file.

@Fernando-A-Rocha
Copy link
Owner

Fernando-A-Rocha commented Jan 15, 2023

i wanted to know if it's possible to add weapons ? tried to add it as a object but it needs a collision file.

you can add objects without collision by doing ignoreCOL = true in the adding function

And to answer your question, yes you can add weapons but it's tricky, you need to make a script to support it.
You can indeed achieve it by adding objects and attaching them to the player (with pAttach for example) and hiding the default weapon (with shader set weapon texture alpha 0, for example). Be careful when setting parent model ID for the object you add, make it something like 1337 or 1942 (I believe).

I haven't done this in a long time, so I don't know exactly how to make the script, but from what I remember the information above should help you ^^

@0f1

@Fernando-A-Rocha Fernando-A-Rocha added the question Further information is requested label Jan 15, 2023
@0f1
Copy link
Author

0f1 commented Jan 15, 2023

Thanks you for the information i will go test it out right now.

@Fernando-A-Rocha Fernando-A-Rocha pinned this issue Feb 6, 2023
@Fernando-A-Rocha Fernando-A-Rocha changed the title Weapon Adding How to add Weapons (method) Feb 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants