In the init field : this setBehaviour "safe";this switchMove "effectstandsitdown"
Note : it seems to work better when military units aren't in a squad. The civilians stand up after a few seconds, but I read that the solution seems to be this one : give to the unit a "HOLD" waypoint an put the code here. ;D