Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- DEFINE_ACTION_FUNCTION_PARAMS(AActor, A_SetHeight)
- {
- ACTION_PARAM_START(2);
- ACTION_PARAM_INT(newheight, 0);
- ACTION_PARAM_STATE(success_state, 1);
- int oldheight = self->height;
- self->height = newheight;
- if (P_TestMobjLocation (self))
- ACTION_JUMP(success_state);
- else
- self->height = oldheight;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement