class ScriptHumanCommandBase
{
int m_VehicleType;
int m_Raised;
void ScriptHumanCommandBase( Human human )
{
HumanAnimInterface interface = human.GetAnimInterface(); m_VehicleType = interface.BindVariableInt("VehicleType"); m_Raised = interface.BindVariableBool("Raised");
}
}
class ModulesHumanCommand extends HumanCommandScript
{
DayZPlayerImplement m_Player;
ScriptHumanCommandBase m_Script;
HumanInputController m_Input;
void ModulesHumanCommand( DayZPlayerImplement user,ScriptHumanCommandBase script )
{
m_Player = user; m_Script = script; m_Input = user.GetInputController();
}
};
// 1. if you call it when the player is inside the vehicle, then the information that the player is in the vehicle is partially removed, you can cut it off and walk through the air with partial attachment
ref ScriptHumanCommandBase m_ScriptCommand = new ScriptHumanCommandBase( this );
ModulesHumanCommand cmd = new ModulesHumanCommand( this, m_ScriptCommand );
player.StartCommand_Script( cmd );
//2. if you call this, it crashes, no validation
player.StartCommand_Script( NULL );