Play Light Switch Animation and c++

does this work?



GetYourMesh()->Play(bool bLooping);