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

How to walk-through ppls/NPCs when blocking the way?


KingLongg
 Share

Recommended Posts

I HAVENT TESTED THIS FOR NPCS JUST PLAYERS

This is a source edit like ninja-tech said

Client
ā€“-----------

in Modules click on modgamelogic

in

Function CanMove()
change:
CanMove = False
to
CanMove = True

If Map(GetPlayerMap(MyIndex)).Tile(X, y).Type = TILE_TYPE_WALKTHRU Then
Ā  Ā  Ā  Ā  Exit Function
Ā  Ā  Else
Ā  Ā  Ā  Ā  For i = 1 To MAX_PLAYERS
Ā  Ā  Ā  Ā  Ā  Ā  If IsPlaying(i) And GetPlayerMap(i) = GetPlayerMap(MyIndex) Then
Ā  Ā  Ā  Ā  Ā  Ā  Ā  Ā  If (GetPlayerX(i) = X) And (GetPlayerY(i) = y) Then
Ā  Ā  Ā  Ā  Ā  Ā  Ā  Ā  Ā  Ā  CanMove = True
Ā  Ā  Ā  Ā  Ā  Ā  Ā  Ā  Ā  Ā  Exit Function
Ā  Ā  Ā  Ā  Ā  Ā  Ā  Ā  End If
Ā  Ā  Ā  Ā  Ā  Ā  End If
Ā  Ā  Ā  Ā  Next i
Ā  Ā  End If

i hope this helped =D
Link to comment
Share on other sites

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
 Share

×
×
  • Create New...