About runtime weapon

NLTK

New member
When the enemy picked up the runtime weapon, it can both hit the enemies and the player. I want the weapon can both picked up by the enemies or the player, but don't want the enemy hit the enemies teamate, how to do this?
 
You can use the state system. Set a state when the weapon is equipped, and assign different state presets to the player and enemy with different impact layers.
 
In ItemSetManager, it is already a "Sword" state when the sword is equipped. It is both needed for the enemy and the player, how can I set another state "Enemy" for just the enemy? Do I need to set a new state, for example "EnemySword", and copy the preset value of "Sword", then add the impact layer value in it? Does it have a more convenience way, for example, can I set two states at the same time when equipped?
 
Top