| 140 | } |
| 141 | |
| 142 | PyObject *py_ue_jump(ue_PyUObject *self, PyObject * args) { |
| 143 | |
| 144 | ue_py_check(self); |
| 145 | |
| 146 | ACharacter *character = nullptr; |
| 147 | |
| 148 | if (self->ue_object->IsA<ACharacter>()) { |
| 149 | character = (ACharacter *)self->ue_object; |
| 150 | } |
| 151 | else if (self->ue_object->IsA<UActorComponent>()) { |
| 152 | UActorComponent *component = (UActorComponent *)self->ue_object; |
| 153 | AActor *actor = component->GetOwner(); |
| 154 | if (actor) { |
| 155 | if (actor->IsA<ACharacter>()) { |
| 156 | character = (ACharacter *)actor; |
| 157 | } |
| 158 | } |
| 159 | } |
| 160 | |
| 161 | if (!character) |
| 162 | return PyErr_Format(PyExc_Exception, "uobject is not a character"); |
| 163 | |
| 164 | character->Jump(); |
| 165 | |
| 166 | Py_INCREF(Py_None); |
| 167 | return Py_None; |
| 168 | } |
| 169 | |
| 170 | PyObject *py_ue_crouch(ue_PyUObject *self, PyObject * args) { |
| 171 |
nothing calls this directly
no outgoing calls
no test coverage detected