Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   onWall and non-blocking NPCs (https://forums.graalonline.com/forums/showthread.php?t=134268655)

baseman101 08-22-2013 10:32 PM

onWall and non-blocking NPCs
 
I've scripted my own movement system by using onWall to detect walls. It works great, although it doesn't detect if an NPC is non-blocking. All NPCs are blocking with the onwall check. How do I make it so that the NPCs don't block with my particular movement system?

Angel_Light 08-22-2013 10:47 PM

You can use setshape and then dontBlock() in the npc's that don't need blocking.

xXziroXx 08-23-2013 05:17 AM

Quote:

Originally Posted by Angel_Light (Post 1721925)
You can use setshape and then dontBlock() in the npc's that don't need blocking.

On clientside, yes. If not, your clientsided movement system will think it's blocking since you've likely only declared otherwise on serverside.

baseman101 08-23-2013 06:14 PM

Quote:

Originally Posted by xXziroXx (Post 1721935)
On clientside, yes. If not, your clientsided movement system will think it's blocking since you've likely only declared otherwise on serverside.

Yea, I figured.


All times are GMT +2. The time now is 08:37 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.