Advertisement
Guest User

Untitled

a guest
Jan 23rd, 2019
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.36 KB | None | 0 0
  1. void CScriptGameObject::SetActorDirection       (float dir)
  2. {
  3.     CActor* actor = smart_cast<CActor*>(&object());
  4.     if(actor){
  5.         actor->cam_Active()->Set(dir,0,0);
  6. //      actor->XFORM().setXYZ(0,dir,0);
  7.     }else
  8.         ai().script_engine().script_log     (ScriptStorage::eLuaMessageTypeError,"ScriptGameObject : attempt to call SetActorDirection method for non-actor object");
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement