Should it appear from the affidavits of a party opposing the motion that he cannot for reasons stated present by affidavit facts essential to justify his opposition, the court may refuse the application for judgment or may order a continuance to permit affidavits to be obtained or depositions to be taken or discovery to be had or may make such other order as is just.
SDCL 15-6-56(f)