| 2848 | } |
| 2849 | |
| 2850 | void 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 | |
| 2866 | DefineEngineMethod( 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" |