Setting user in scripaction


I have a scripaction which resolves dependent tickets when the depended on
ticket is resolved. The problem I’m running into is the dependent tickets
show as having been resolved by ‘RT System’ rather than the user who resolved
the depended on ticket. Is there a way to set the user a scripaction runs
as? I’d like to grab the user from the transaction, and perform all the
dependent actions as that user. Any ideas?