#How can i see the signals on the VON

1 messages · Page 1 of 1 (latest)

latent flint
#

Hola!
All these things are done via (hardcoded) GameCode and not Signals.

wooden swallow
#

dang.

Second question if you don't mind @latent flint

#

What am i doing wrong here. I just want want my custom sound SOUND_DOGBARK to play in as script. If I overwrite the sound to something else the .wav plays fine. But when creating custom sound, it never plays. I'm clearly missing something in my ACP.

void ActionBark()
    {
        PlayerController pc = PlayerController.Cast(GetOwner());
        if(!pc)
            return;
        
        IEntity player = pc.GetControlledEntity();
        if(!pc)
            player;
        
        SoundComponent soundComp = SoundComponent.Cast(player.FindComponent(SoundComponent));
        if (!soundComp)
            return;
        
        soundComp.SoundEvent("SOUND_BODYFALL_TERMINAL"); //Works
        soundComp.SoundEvent("SOUND_DOGBARK");
        
        Print("GRAY.Bark");
    }
latent flint