Jump to content
  • 0

how do i make an monster swim


Moo Moo Armageddon

Question

6 answers to this question

Recommended Posts

  • 0

You're gonna have to put in a thing that checks if they're in water, to make it jump to a swimming state.

 

For example:

Actor SwimmingImp : Doomimp replaces Doomimp

{

States

{

See:

TROO A 5 A_Chase

TNT1 A 0 A_Jumpif(Waterlevel>>2,"Enterwater")

TROO B 5 A_Chase

TNT1 A 0 A_Jumpif(Waterlevel>>2,"Enterwater")

TROO C 5 A_Chase

TNT1 A 0 A_Jumpif(Waterlevel>>2,"EnterWater")

TROO D 5 A_Chase

TNT1 A 0 A_Jumpif(Waterlevel>>2,"Enterwater")

Loop

Enterwater:

TNT1 A 0 A_Changeflag(FLOAT,1)

TNT1 A 0 A_Changeflag(NOGRAVITY,1)

goto SwimSee

Leavewater:

TNT1 A 0 A_Changeflag(FLOAT,0)

TNT1 A 0 A_Changeflag(NOGRAVITY,0)

goto See

SwimSee:

TROW A 5 A_Chase

TNT1 A 0 A_Jumpif(Waterlevel<<2,"Leavewater")

TROW B 5 A_Chase

TNT1 A 0 A_Jumpif(Waterlevel<<2,"Leavewater")

TROW C 5 A_Chase

TNT1 A 0 A_Jumpif(Waterlevel<<2,"LeaveWater")

TROW D 5 A_Chase

TNT1 A 0 A_Jumpif(Waterlevel<<2,"Leavewater")

Loop

}}

Share this post


Link to post
  • 0
1 hour ago, Cut The Chit Chat YT said:

quick question: what text language is the script?

ACS?

 

edit: What immorpher said

Edited by nue

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...