Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void CScriptGameObject::SetActorDirection (float dir)
- {
- CActor* actor = smart_cast<CActor*>(&object());
- if(actor){
- actor->cam_Active()->Set(dir,0,0);
- // actor->XFORM().setXYZ(0,dir,0);
- }else
- ai().script_engine().script_log (ScriptStorage::eLuaMessageTypeError,"ScriptGameObject : attempt to call SetActorDirection method for non-actor object");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement