Attack System
Last updated
Was this helpful?
Last updated
Was this helpful?
Here we put a link to the object (model) of our weapon, but it needs to be configured to function.
To do this, our object must have the following components :
Melee Weapon
Box Collider
Rigidbody
Indicates the damage that will be inflicted when hitting an
The pulse that will be communicated to the attacked charact
It is a repository of decals.
We can set the physical material or texture we need on the terrain.
And install a set of decals for it.
We install it at the place of the model, in contact with which damage should be inflicted.
We need it in order for the trigger to be triggered when interacting with the blade.
This parameter is responsible for a quick attack with a cold weapon.
In order to correctly configure this parameter, you need to enter the name of the action from the input system in the Input Action Name field :
Please note that the names must match to work.
After we have set a new action, we need to configure the button on which it will be called, for this we go to <No Binding>
Then we go to Path and there we select the platform we need and select the key.
If you can't find the key you need in the list, but you have the right gadget at hand, then you can click on Listen and then click on the button you need on the gadget and this button will be added to the list below.
After all the settings, if everything is done correctly, when you click on the selected button, a quick attack with cold weapons will occur.