Jump to content

Best way to script immobilize actor?


Myst42

Recommended Posts

Posted

I mean getting the actor rooted on a single place, able to move, attack and cast spells, but not run or walk

 

It's for a "shield wall" spell

The idea is the caster becomes protected, but cannot walk or run until the shield is not active (it's a concentration spell)

 

Read something about changing actor values, carry weight, speed, inventory weight and similar, but I'm still a bit lost

Also, I want the actor to be rooted, not just slowed down.

 

Posted
15 hours ago, Myst42 said:

I mean getting the actor rooted on a single place, able to move, attack and cast spells, but not run or walk

 

It's for a "shield wall" spell

The idea is the caster becomes protected, but cannot walk or run until the shield is not active (it's a concentration spell)

 

Read something about changing actor values, carry weight, speed, inventory weight and similar, but I'm still a bit lost

Also, I want the actor to be rooted, not just slowed down.

 

One option is use SetDontMove but also disable camera movement and aiming.

Other option is DisablePlayerControls and set abMovement to false for have camera movement.

But DisablePlayerControls have this problem: "other actors can't attack a player with a disabled movement."

The last option is use SetRestrained but like SetDontMove not have camera movement.

 

If none of this is valid for you the only option is put movementspeed to 0.

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

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