So, I would like to know how could I have some lightning strikes appearing randomly around my map and if the strike hit a player unit/structure it would deal damage. Any help how to do this would be most thankful!
Ok, very generic answer for very generic question :)
1. Create ability that deals area damage and uses lightning model.
2. Make regions around map and lightning strikes on random location every X seconds.
- -
Idea: Try this solution with Psionic Storm before creating new ability.
When I did this in Malum Ruina I used a unit with 0 collision and the archon's beam weapon model to represent the bolt, though creating the actor should work just as well (if not better, admittedly.) You don't really need an ability - you can use the Create Model action in triggers. Here's a basic layout of the function:
The archon beam model may not appear the way you want it to. You might have to modify it using actor messages or by representing the model with a custom actor, including site operations. Or just use a different model.
Lightning Damage is a damage effect. Modify as desired. You will need to modify the effect to include splash damage with a radius.
Adjust the wait time as needed. A lower wait time will increase the frequency of lightning strikes but may cause lag issues.
So, I would like to know how could I have some lightning strikes appearing randomly around my map and if the strike hit a player unit/structure it would deal damage. Any help how to do this would be most thankful!
Ok, very generic answer for very generic question :)
1. Create ability that deals area damage and uses lightning model.
2. Make regions around map and lightning strikes on random location every X seconds.
- -
Idea: Try this solution with Psionic Storm before creating new ability.
@Videz09: Go
When I did this in Malum Ruina I used a unit with 0 collision and the archon's beam weapon model to represent the bolt, though creating the actor should work just as well (if not better, admittedly.) You don't really need an ability - you can use the Create Model action in triggers. Here's a basic layout of the function:
A couple of notes:
Awsome thank you, I will let you know how it turns out =)