🪓Sniper And Ballistics Integration
This part is only for Sniper And Ballistics System, other integrations are explained in previous page.
Sniper And Ballistics System Integration
Of course, first import the "Sniper And Ballistics System" asset to your project (Also read this) if you didn't before.
There is no Integration File inside the asset because you will need to Replace a script for the integration.
Here, we will replace the needed script for the integration.
Find the "SniperAndBallisticsSystem.cs" in your project.
Replace that script with the one below:
And that's all, now you can just save and test it!
Here, we will add a code to a script to make the integration work
Find the "SniperAndBallisticsSystem.cs" in your project.
Open the script and go to the Line 817!
Add these Lines Of Code to there.
if (hit.transform != null)
{
if (hit.transform != null)
{
UniversalAI.UniversalDamageable damageable = hit.transform.GetComponent<UniversalAI.UniversalDamageable>();
if(damageable != null)
{
damageable.TakeDamage(Random.Range(50,75));
}
return btp;
}
}
And that's all, now you can just save and test it!
Last updated
Was this helpful?