- Joined
- Mar 12, 2008
- Messages
- 437
Alright, so I have a map where different random enemy creeps spawn periodically, and they have an individual "spawn call" which sounds as they spawn. The system works like this: every creep has an ID number (their point value), and I simply named every sound variable to the ID of the creep associated with it.
This little thing is what I want to do, but it's erroneous:
Creep[X] is a unit-type variable, which returns the unit type whose point-value is X. (Example: if Footman has point-value 7, then Creep[7] = Footman. The Footman's associated sound is simply named "7")
This little thing is what I want to do, but it's erroneous:
- Custom script: call PlaySoundAtPointBJ( gg_snd_GetUnitPointValueByType(udg_Creep[udg_CreepNumber]), 100, udg_P[100], 0 )
Creep[X] is a unit-type variable, which returns the unit type whose point-value is X. (Example: if Footman has point-value 7, then Creep[7] = Footman. The Footman's associated sound is simply named "7")