Jump to content

HELP Please? - Trying to use shock_near and burn_near on Players instead of everything else


Recommended Posts

So I'm trying to make a spawn that will have a shock_near check where it will zap the players every so often in a set interval.
I can get the thing to shock itself but when I try to set it to target the player it won't do it correctly.

Need Guidance on this one. Code snippet below

<loop class="For">
            <property name="min_loop_count" value="15" />
            <property name="max_loop_count" value="50" />
            <property name="phase" value="4" />
            
            <action class="Delay">
                <property name="time" value="15" />
            </action>
            
            <requirement class="NearbyEntities">
                <property name="allow_player" />
                <property name="entity_tags" value="Player,human" />
                <property name="max_distance" value="100" />
            </requirement>
        
            <action class="AddEntitiesToGroup">
                <property name="phase" value="4" />
                <property name="allow_player" />
                <property name="entity_tags" value="Player,human" />
                <property name="group_name" value="targets" />
            </action>
        
            <action class="AddBuff">
                <property name="phase" value="4" />
                <property name="target_group" value="targets" />
                <property name="max_distance" value="30" />
                <property name="buff_name" value="buffShocked" />
            </action>
        </loop>

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...