Otolone
Member
|
Weapons switching in FPS
How do you switch weapons in EE.
I have tried the following approaches:
1) Using draw groups and the the functions flagset(), flagenable(), flagdisable() etc. to hide weapons I don't want to use.
2) I have used movefromworldtostorage() and from movefromstoragetoworld() unsuccessfully.
What is the right approach to do.
Thanks in advance and happy New year!
|
|
01-03-2021 11:10 AM |
|
RedcrowProd
Member
|
RE: Weapons switching in FPS
hi there,
what base code are you using ?
there is so many way you could archive this, that without a base all i can say is you could:
-have bool for the draw
-could delete and create instances if you want them 100% out
-could just change the mesh on them & attribute
-you could change their position if they need to go on the second slot
- ... many more
|
|
01-04-2021 04:40 AM |
|
Esenthel
Administrator
|
RE: Weapons switching in FPS
If you have everything in one mesh, then you can use Groups and SetDrawMask function.
If you have separate meshes, then just call mesh.draw for the ones you want to draw.
|
|
01-04-2021 05:02 AM |
|
Otolone
Member
|
RE: Weapons switching in FPS
Thanks a lot!!
|
|
01-04-2021 04:28 PM |
|