Getuserdef
getuserdef[<sprite id>].<functionname> <gamevar>
Use getuserdef to set the value of the gamevar <gamevar> to the value of <functionname> within the actor determined by the gamevar <sprite id> and save it to the gamevar. See Members of Userdef Structure.