Hi,
You should inspire from existing actions to create this one, this is always how I write custom actions, I never starts from scratch.
also, in your case, I don't see the need for a custom action, as everything can be done just fine with existing actions.
Are you struggling to do this in PlayMaker?
bye,
Jean