I've been using the following in a fragglescript at the start of a map to simulate the player picking himself up off the floor - after the previous map finished with the E1M8 "almost kill the player and end the level" special.
Code: Select all
[scripts]
script 254
{
runcommand("viewheight 16");
wait(30);
runcommand("viewheight 41");
}
startscript(254);
However, I've also just started messing with custom player classes with altered view heights. This means that the player could be using a number of different view heights, depending on which class they have selected. Is there anyway to get the same effect but allow it to set the correct player view height for the current player class?
If not, might a command something like the title of this thread be a suitable addition to GZdoom?