they are various ways in the old udk forums that using unrealscript, you can look there to kwon how did it work.