GenerateLocalInputCmdAtFrame

Helpers

Windows
MacOS
Linux

References

Module

NetworkPrediction

Header

/Engine/Plugins/Runtime/NetworkPrediction/Source/NetworkPrediction/Public/NetworkedSimulationModelRepControllers.h

Include

#include "NetworkedSimulationModelRepControllers.h"

Syntax

template<typename Model>
void GenerateLocalInputCmdAtFrame
(
    typename TNetSimModelTraits< Model >::Driver * Driver,
    TNetworkSimBufferContainer< Model > & Buffers,
    const FNetworkSimTime & DeltaSimTime,
    int32 Frame,
    bool bProduceInputViaDriver
)

Remarks

Helpers

Helper that writes a new input cmd to the input buffer, at given Frame (usually the sim's PendingFrame). If frame doesn't exist, ProduceInput is called on the driver if bProduceInputViaDriver=true, otherwise the input cmd will be initialized from the previous input cmd.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss