OnElevatorMove
Usage
- Return a non-null value to override default behavior
Example Autogenerated
csharp
private object OnElevatorMove( Elevator instance, int targetFloor )
{
Puts( "OnElevatorMove works!" );
return null;
}Location
- Elevator::RequestMoveLiftTo(int targetFloor, float timeToTravel, Elevator fromElevator)
csharp
protected bool RequestMoveLiftTo(int targetFloor, out float timeToTravel, Elevator fromElevator)
{
timeToTravel = 0f;
if (Interface.CallHook("OnElevatorMove", this, targetFloor) != null)
{
return false;
}
if (IsBusy())
{
//---