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

Non-moving npc


Scythe
 Share

Recommended Posts

Server Side

modeGameLogic
```
Function CanNpcMove(ByVal MapNum As Long, ByVal MapNpcNum As Long, ByVal Dir As Byte) As Boolean
```
Look in there and make it so your NPC can't move…

Not 100% sure on the coding but I think something like this would work...
```
                ' Check to make sure the Npc can't walk
                If Npc(NpcNum).Behaviour = NPC_BEHAVIOUR_WhateverYourNpc'sBehaviourIs Then
                    CanNpcMove = False
                  Exit Function
                End If
```
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...