Wet Footprints Script

Hi all, could someone please post the script I need in order to have footsteps appear after coming out of the water, and is the script standalone or does it have to be integrated into the waveset script? Thanks!
<object name>:
logic:
actions:
- type: footmgr
footmgr:
matpreshade: <material ref>
matrtshade: <material ref>
lifespan: 20
targets:
- <object name>
- <object name>