About Store Forum Documentation Contact



Post Reply 
Weapons switching in FPS
Author Message
Otolone Offline
Member

Post: #1
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
Find all posts by this user Quote this message in a reply
RedcrowProd Offline
Member

Post: #2
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
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #3
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
Find all posts by this user Quote this message in a reply
Otolone Offline
Member

Post: #4
RE: Weapons switching in FPS
Thanks a lot!!
01-04-2021 04:28 PM
Find all posts by this user Quote this message in a reply
Post Reply