Jump to content

A21.2 Twitch Integration - trying to make a safe-zone spawnable entity


RStarphoenix

Recommended Posts

i been fighting with this for about a week now. i can get regular spawns to work but I'm trying to get non-violent entities (deer for now) to spawn inside

a safe zone. I know it can happen because votes can spawn in safe zones but trying to get a regular command to do it isn't working.  The only thing I can

find is gameevents.xml has a "spawn_safe" but it doesn't respond. I've looked at the code for some of the boss votes and tried various ways to pop it in.

Outside of a safe zone it works fine. Anyone got a suggestion on how to get it to work? I put the XML i'm trying to use below.
------------------------------------------------------------------------------------------------------------------------------------------------------------------------

 

    <action_sequence name="deerhunt">

        <property name="action_type" value="TwitchAction" />
        
        <action class="GetNearbyPoint">
                <property name="phase" value="0" />
                
                <requirement class="InSafeZone">
                    <property name="safe_spawn" value="true" />
                </requirement>
        </action>
        
        <action class="SpawnEntity">
            <property name="phase" value="1" />    
            <property name="entity_names" value="animalStag" />
            <property name="spawn_count" value="1" />
            <property name="air_spawn" value="false" />
            <property name="spawn_type" value="Position" />
        </action>

        <action class="SpawnEntity">
            <property name="phase" value="2" />    
            <property name="entity_names" value="animalStag" />
            <property name="spawn_count" value="1" />
            
            <requirement class="Gamestage">
                <property name="operation" value="GTE" />
                <property name="game_stage" value="40" param1="gamestage1" />
            </requirement>
        </action>

        <action class="SpawnEntity">
            <property name="phase" value="3" />    
            <property name="entity_names" value="animalStag" />
            <property name="spawn_count" value="1" />
            
            <requirement class="Gamestage">
                <property name="operation" value="GTE" />
                <property name="game_stage" value="100" param1="gamestage2" />
            </requirement>
        </action>
        
        <action class="PlaySound">
            <property name="sound" value="stagpain" param1="alertsound" />
            <property name="phase" value="4" />
        </action>
    
    </action_sequence>
    
</append>

</configs>

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...