| 927 | } |
| 928 | |
| 929 | void CScriptGameObject::SwitchTorch(bool enable) |
| 930 | { |
| 931 | CTorch* torch = smart_cast<CTorch*>(&object()); |
| 932 | if (!torch) |
| 933 | { |
| 934 | ai().script_engine().script_log(ScriptStorage::eLuaMessageTypeError, "CInventoryOwner : cannot access class member activate_slot!"); |
| 935 | return; |
| 936 | } |
| 937 | torch->Switch(enable); |
| 938 | } |
| 939 | |
| 940 | void CScriptGameObject::enable_movement(bool enable) |
| 941 | { |
nothing calls this directly
no test coverage detected