SndHeroSpawned Help

In this forum you will find and post information regarding the modding of Star Wars Battlefront 2. DO NOT POST MOD IDEAS/REQUESTS.

Moderator: Moderators

Post Reply
DeathTrooperLeader
Private Recruit
Posts: 20
Joined: Mon Sep 18, 2017 4:33 am
Projects :: No Mod project currently.
Games I'm Playing :: SWB2
xbox live or psn: No gamertag set

SndHeroSpawned Help

Post 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]
AQT
Gametoast Staff
Gametoast Staff
Posts: 4910
Joined: Sat Nov 03, 2007 4:55 pm
Location: SoCal, USA

Re: SndHeroSpawned Help

Post by AQT »

That parameter only works when your unit is set as a hero unit using the lua function SetHeroClass.
DeathTrooperLeader
Private Recruit
Posts: 20
Joined: Mon Sep 18, 2017 4:33 am
Projects :: No Mod project currently.
Games I'm Playing :: SWB2
xbox live or psn: No gamertag set

Re: SndHeroSpawned Help

Post 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?
Post Reply