0
Answered

Shooter adjustable damage

Sam Leitch 1 week ago in Shooter updated by Marti (Lead Developer) 5 days ago 1

Hello,

I am wanting to do different damages per weapon, once again RVRs videos have been spectacular. 

Currently using his variable damage technique. Having a lot of success.

The issue im having is these actions only apply to the weapon picked up in scene where i can apply them.


Is there a way to utilise these actions on weapons brought at a merchant, pre existing container and enemy drops?


These options all come directly from the item list in Game Creator. Can i add these in the back end somewhere to make them effect all guns?


Any help would be much appreciated

If there is an easier way to apply different damage per gun i would love to know it!

Unity version:
2019.3.14
Game Creator version:
latest
GOOD, I'M SATISFIED

Both sound plausible. I appreciate it!

Satisfaction mark by Sam Leitch 5 days ago
+1
Answered

There are different ways to approach this. You could have a bunch of Global Variables with each weapon's damage and use that as a look-up table when damaging the enemy.

Another way would be adding a Local Variable, let's call it "weapon-damage" on each character, including the player. In each of your item's On Equip actions, you can access the Invoker and set, per weapon, how much damage this weapon will apply.

Hope this gives you an idea. I particularly prefer the second approach.