Let he who has not sinned cast the first stone.
Posts
8
Respect
Forum Rank
Legless Crawler
Primary Group
Member
Login Issues
Forgot password?Activate Issues
Account activation email not received? Wrong account activation email used?Other Problems?
Contact Support - Help Center Get help on the UGX Discord. Join it now!Can you tell me how to allow the trigger to activate only when the tesla_gun fires at the trigger ?
You can check what gun they have using getCurrentWeapon() and if the current weapon is the tesla_gun, you can do whatever you want after that.
you might need to use thisI can't really test anything at the moment because my game won't open
- are you getting errors while linking your scripts?
- Have you done all the necessary steps to make those fx play?
Well, I stumbled upon this topic while searching through the help section. Hope this helps
http://ugx-mods.com/forum/index.php/topic,13911.0.html
someone in the topic mentioned that it worked for them.
Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum. |
Thank you very much, it worked for me too !!
No problem
leonardo745, looking back at your original code, I noticed you weren't getting the trigger using
so the game never knew what trigger it was looking for
I re-wrote the script to be much shorter, and more flexible. I'm not trying to step on your toes, or 1-up you or anything like that. Just figured this might help, especially if you are busy and I know you've mentioned updating the script anyways, so maybe this will save you the trouble. If you don't use it that's fine also, no offense taken. I'm not the best scripter, but pretty decent I believe, lol. Here it is.
Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum. |