KingLongg Posted December 25, 2008 Author Share Posted December 25, 2008 In my maps there you could block some ways. So i need to walk through the persion/NPC, if the he/she blocks the way. Link to comment Share on other sites More sharing options...
Techno 5.0 Posted December 25, 2008 Share Posted December 25, 2008 this is a scource editlook through the tutorials and snippets section Link to comment Share on other sites More sharing options...
KingLongg Posted December 25, 2008 Author Share Posted December 25, 2008 oh ok. Tyi gonna try to do it :) Link to comment Share on other sites More sharing options...
ZeroFusion Posted December 25, 2008 Share Posted December 25, 2008 I HAVENT TESTED THIS FOR NPCS JUST PLAYERSThis is a source edit like ninja-tech saidClientā-----------in Modules click on modgamelogicinFunction CanMove()change:CanMove = FalsetoCanMove = TrueIf 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 Ifi hope this helped =D Link to comment Share on other sites More sharing options...
KingLongg Posted December 25, 2008 Author Share Posted December 25, 2008 Yo i gonna try it right now. Link to comment Share on other sites More sharing options...
ZeroFusion Posted December 25, 2008 Share Posted December 25, 2008 Tell me how it goes =D Link to comment Share on other sites More sharing options...
KingLongg Posted December 25, 2008 Author Share Posted December 25, 2008 Yes it works :) ty Link to comment Share on other sites More sharing options...
cheatking Posted December 25, 2008 Share Posted December 25, 2008 you could have used walkthrough attibuteā¦ Link to comment Share on other sites More sharing options...
ZeroFusion Posted December 25, 2008 Share Posted December 25, 2008 Whats walkthrough attibute? never heard of it Link to comment Share on other sites More sharing options...
cheatking Posted December 25, 2008 Share Posted December 25, 2008 lets you walk through npc and players that are on the same tile Link to comment Share on other sites More sharing options...
KingLongg Posted December 25, 2008 Author Share Posted December 25, 2008 NOTE: ZeroFusion's Source code is just for Players "not" for NPCs!And Sean yea lol but i just forgot it. Ty XD Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now