Page 1 of 1

SndHeroSpawned Help

Posted: Thu Sep 21, 2017 2:38 pm
by DeathTrooperLeader
I am trying to make a unit say a quote when that unit spawns does anyone know how to do this?

Here is my unit .odf
Hidden/Spoiler:
[code][GameObjectClass]
ClassParent = "umb_default"

[Properties]
GeometryName = "umb_inf_b2_super_battle_droid"
GeometryLowRes = "umb_inf_b2_super_battle_droid"
FirstPerson = "UMB\umb_inf_b2_super_battle_droid_FPM;umb_inf_b2_super_battle_droid_FPM"
SkeletonName = "sbdroid"
SkeletonLowRes = "sbdroidlz"

CollisionHeadOffset = "0.0 -0.2 0.0"

MaxHealth = 600

WEAPONSECTION = 1
WeaponName = "umb_weap_wrist_blaster"
WeaponAmmo = 2

VOSound = "b2_super_battle_droid_follow SC_Follow"
VOSound = "b2_super_battle_droid_roger_roger SC_FollowResponse"
VOSound = "b2_super_battle_droid_stop_following SC_StopFollow"
VOSound = "b2_super_battle_droid_roger_roger SC_StopFollowResponse"

SndHeroSpawned = "b2_super_battle_droid_spawn"

VOUnitType = 083

VOSound = "cis1_inf_pc_com_hostile SpottedVO"
VOSound = "cis1_inf_pc_com_bacta NeedMedicVO"
VOSound = "cis1_inf_pc_com_mechanic NeedRepairVO"
VOSound = "cis1_inf_pc_com_ammo NeedAmmoVO"
VOSound = "cis1_inf_pc_com_transport NeedPickupVO"
VOSound = "cis1_inf_pc_com_backup NeedBackupVO"
VOSound = "cis1_inf_pc_com_clear_area AttackPositionVO"
VOSound = "cis1_inf_pc_com_defend DefendPositionVO"

VOSound = "cis1_inf_pc_com_hostile_inVehicle SpottedVO +InVehicle"
VOSound = "cis1_inf_pc_com_bacta_inVehicle NeedMedicVO +InVehicle"
VOSound = "cis1_inf_pc_com_mechanic_inVehicle NeedRepairVO +InVehicle"
VOSound = "cis1_inf_pc_com_ammo_inVehicle NeedAmmoVO +InVehicle"
VOSound = "cis1_inf_pc_com_transport_inVehicle NeedPickupVO +InVehicle"
VOSound = "cis1_inf_pc_com_backup_inVehicle NeedBackupVO +InVehicle"
VOSound = "cis1_inf_pc_com_clear_area_inVehicle AttackPositionVO +InVehicle"
VOSound = "cis1_inf_pc_com_defend_inVehicle DefendPositionVO +InVehicle"

HurtSound = "cis_inf_com_chatter_wound"
DeathSound = "droid_death"
DamageRegionSound = "cis_inf_com_chatter_wound"
ShockFadeOutTime = ""
ShockFadeInTime = ""
ShockFadeOutGain = ""
ShockSound = ""
ClothingRustleSound = ""
LowHealthSound = "b2_super_battle_droid_low_health"
LowHealthThreshold = ".25"
FoleyFXClass = "cis_inf_droid"[/code]

Re: SndHeroSpawned Help

Posted: Thu Sep 21, 2017 6:51 pm
by AQT
That parameter only works when your unit is set as a hero unit using the lua function SetHeroClass.

Re: SndHeroSpawned Help

Posted: Thu Sep 21, 2017 7:10 pm
by DeathTrooperLeader
Aw, that is sad. Well, thanks for letting me know. :D (You just saved me about more than 1 day of my life)

I set the unit to a hero. How do I set this spawn sound up?