UE4 使用AI角色 在dedicated server中复制 与在单机中有点不一样

pawn的aicontroller不会在client中进行复制 所以凡是需要使用aicontroller的地方需要通过RPC 通过服务器进行调用

另外aicontroller使用需要单独设置一点东西

1.取消autopossess 否则pawn就会使用netconnection(这个是我自己试验的 有知道的同学可以具体说明一下为什么)

UE4 AIPawn 的Replicated

2.在pawn的beginplay中 动态创建aicontroller 在服务器上进行possess(注意aicontroller的owner应该为与playercontroller 或者player 相关的actor)


UE4 AIPawn 的Replicated

相关文章:

  • 2022-12-23
  • 2021-04-20
  • 2021-11-05
  • 2022-12-23
  • 2021-06-15
  • 2021-06-10
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-10-24
  • 2022-12-23
  • 2021-12-12
  • 2022-12-23
  • 2022-12-23
  • 2022-02-05
  • 2022-01-13
相关资源
相似解决方案