Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
  • 0
horse music

how do i make an monster swim

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×