load.view(1);
set.view(ego,1);
program.control();
stop.motion(ego);
death_type = 1;
Basically what happens with this code is it loads view 1, sets ego to be view 1, turns on program control(so the user can't move the ego anymore) stops the ego's motion, then sets death_type to 1 which prints death message 1 which can be found in logic 94(logic 94 is the death script).
If you need more help just ask.