Jump to content

[Script] Adding AI Packages to the Player


Zorkaz

Recommended Posts

I add/remove AI packages on random NPC's via a script which does "MyRefAlias.ApplyToRef(NPC)" - (I have an empty quest with one unfilled refalias on it with the AI package attached).

 

This works fine for NPC's but I have never attemped it on the Player - not even when they are AI driven...

You must be doing fun stuff!

Link to comment
Share on other sites

So far no luck. Using

Game.ForceThirdPerson()
Game.SetPlayerAIDriven(true)
utility.wait(0.1)
PSPlayerSandboxQ.start()
PSPlayerSandboxQScene.start()

in a magic effect

 

and having a scene where the player has a sandbox package applied only lets the player stand around immovable

 

Have you tested it with other packages and without the magic effect yet? I don't really know how sandbox packages are handled under the hood, it might be that they can't be applied to players. I'm not really sure.

 

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...