MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / setPathObjectActive

Method setPathObjectActive

Engine/source/Verve/VPath/VPath.cpp:2850–2864  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2848}
2849
2850void VPath::setPathObjectActive( SceneObject *pObject, const bool &pActive )
2851{
2852 VPathObject *pathObject = getPathObject( pObject );
2853 if ( !pathObject )
2854 {
2855 Con::warnf( "VPath::setPathObjectActive() - Object (%d) Not Attached to Path.", pObject->getId() );
2856 return;
2857 }
2858
2859 // Apply.
2860 pathObject->setActive( pActive );
2861
2862 // Network Flags.
2863 setMaskBits( ObjectUpdateMask );
2864}
2865
2866DefineEngineMethod( VPath, getPathObjectInterp, F32, (SceneObject *sceneObject), (nullAsType<SceneObject*>()), "( SimObject pObject ) - Get the current interp position of the path object.\n"
2867 "@param pObject The SimObjectID of the object being observed.\n"

Callers 1

VPath.cppFile · 0.45

Calls 3

getIdMethod · 0.65
warnfFunction · 0.50
setActiveMethod · 0.45

Tested by

no test coverage detected