Looking into the scripts I dont know how to start. Can someone point me in the right direction?
This is what I would like to have.
- script that runs in a loop for each group, and plays sounds on certain events.
Sample:
#start
; get leader of group
; check leader speed, if running then play "gogogo"
; check leader if position up/down, if down play "takecover"
; check leader if fireing, if so then play "attack!"
; check leader if enemy is spottet, if so then play "enemyahead"
; check leader if fleeing, if so play "fallback"
; check leader if wounded, play "medic"
; check leader if he knows if enemy is wiped out, then play "area-secure"
; check leader for giving formations command, line="stick together", vee="spreadout" etc
; ---whole group/each unit
; check unit if wounded, play "medic"
; check unit if detecting heavy armour, then play "tank!!"
; check unit if detecting mortar, then play "incomming!"
; check group size, if below 5 then play "needreinforcements"
#loop
; more sophiticated:
; get position of detected enemy relative to the group, and play "behind us", "watch flanks" etc
Can some guru help me starting?
Johan