Advertisement
Chronos_Ouroboros

A_SetHeight

Jul 18th, 2014
296
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. DEFINE_ACTION_FUNCTION_PARAMS(AActor, A_SetHeight)
  2. {
  3. ACTION_PARAM_START(2);
  4. ACTION_PARAM_INT(newheight, 0);
  5. ACTION_PARAM_STATE(success_state, 1);
  6.  
  7. int oldheight = self->height;
  8. self->height = newheight;
  9. if (P_TestMobjLocation (self))
  10. ACTION_JUMP(success_state);
  11. else
  12. self->height = oldheight;
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement