Heroes of Hammerwatch

Heroes of Hammerwatch

Heroes of Hammerwatch Workshop
Here you can find mods and translations for Heroes of Hammerwatch created by the community.
Learn More
[Modding help] Spawn friendly actor
How to spawn a friendly actor with set?
Something like
<dict name="3">
<string name="desc">Summon 1 skeleton when casting a skill.</string>
<dict name="modifier">
<string name="class">Modifiers::TriggerEffect</string>
<string name="trigger">castspell</string>
<bool name="target-self">true</bool>
<float name="chance">1</float>
<int name="timeout">2000</int>

<array name="effects">
<dict>
<string name="class">SummonAllie</string>
...
< >
Showing 1-4 of 4 comments
Muffinslop 19 6 Nov, 2022 @ 4:30pm 
I believe the actor's team tag is set in the behavior class of the actor itself. This looks like a behavior of a script spawning this unit or actor.
Muffinslop 19 6 Nov, 2022 @ 4:38pm 
In the PlayerBase.as, the player is set as "player". That's the value you'd want to set your actor as to SetTeam("player", false);
Tit_the_modder 7 Nov, 2022 @ 8:50am 
Thanks for the link.
And were could I find PlayerBase.as.
Last edited by Tit_the_modder; 7 Nov, 2022 @ 10:27am
< >
Showing 1-4 of 4 comments
Per page: 1530 50