• If you have a mod, tool or prefab, please use the Resources section. Click Mods at the top of the forums.

nullreferenceExcepcion: object reference not etc...

Sarakatunga

Refugee
I am trying to add a shock wave when the player receives an impact from a z boss.

<item name="ammoProjectileZombieElectricBolt">

<property name="Meshfile" value="ParticleEffects/p_electric_shock"/>

<property name="Material" value="Morganic" />

<property name="CreativeMode" value="None"/>

<property class="Action1">

<property name="Class" value="Projectile"/>

<property name="DamageEntity" value="60"/>

<property name="DamageBlock" value="4800"/>

<property name="Explosion.ParticleIndex" value="1"/> <!-- which Prefab/particle is used -->

<property name="Explosion.RadiusBlocks" value="3"/> <!-- damage radius for blocks -->

<property name="Explosion.BlockDamage" value="20"/> <!-- damage for blocks in the center of the explosion -->

<property name="Explosion.RadiusEntities" value="3"/> <!-- damage radius for entities -->

<property name="Explosion.EntityDamage" value="33"/> <!-- damage for entities in the center of the explosion. Zombies take 2x this damage. -->

<property name="Velocity" value="16"/>

<property name="FlyTime" value="2"/>

<property name="LifeTime" value="4"/>

<property name="CollisionRadius" value="0.5"/>

<property name="Buff" value="buffInjuryKnockdown1"/> <===== :jaded:

</property>

<effect_group name="Base Effects">

<passive_effect name="DamageModifier" operation="perc_set" value="1" tags="earth"/>

<passive_effect name="DamageModifier" operation="perc_add" value="1" tags="metal"/>

<passive_effect name="BuffProcChance" operation="base_set" value="0.70" tags="buffShocked"/>

</effect_group>

</item>

It works correctly but in the dedicated one I get this error how can I prevent the console from opening? is very annoying.

http://www.mediafire.com/view/5dllpb46w8snjtx/20190820184052_1.jpg

 
<property name="Meshfile" value="ParticleEffects/p_electric_shock"/> shouldnt work as thats a particle not a mesh.

 
sorry don't specify well, I was seeing what is fail is <property name = "Buff" value = "buffInjuryKnockdown1" />

Everything related to the "knockdown,buffInjuryKnockdown1... etc" works but it gives that error only in dedicated server I do not understand why.

 
Back
Top