Snlper Posted December 13, 2014 Share Posted December 13, 2014 (edited) I've got a problem . I want to make the player and certain npc slower.zb.begin ontriggerenter player Player.ModActorValue SpeedMult 10end or begin ontriggerenter player Player.setActorValue SpeedMult 10end not working I want an animation of 60% or 50 %. Please help me. Translate by Google ^^ Sniper Edit : by Npc "begin gamemode aatigerNPCtestref.SetActorValue SpeedMult 50end" Works by Player not Edited December 13, 2014 by Snlper Link to comment Share on other sites More sharing options...
Ladez Posted December 13, 2014 Share Posted December 13, 2014 Try this, should work with any actor: reference rActor Begin OnTriggerEnter Set rActor to GetActionRef rActor.ModActorValue SpeedMult 10 End Please use code tags when posting scripts on the forum, it helps with readability. :) Link to comment Share on other sites More sharing options...
Snlper Posted December 14, 2014 Author Share Posted December 14, 2014 (edited) By npc´s no Problem with player , hm , Player in Trigger , no works , but player in trigger , save game , restart game, load save ...... script works is stupid :blush: how does it without rebooting ?where is the script for carry weight ? Sniper Edited December 14, 2014 by Snlper Link to comment Share on other sites More sharing options...
Ladez Posted December 14, 2014 Share Posted December 14, 2014 (edited) Oh, I forgot a crucial detail when modifying the movement speed. The change doesn't take effect until the actor re-evaluates its speed under one of the condition specified here. Try this script instead: reference rActor Begin OnTriggerEnter Set rActor to GetActionRef rActor.ModActorValue SpeedMult 10 rActor.DamageAV LeftMobilityCondition 1 rActor.RestoreAV LeftMobilityCondition 1 End Edited December 14, 2014 by Ladez Link to comment Share on other sites More sharing options...
Snlper Posted December 15, 2014 Author Share Posted December 15, 2014 (edited) No works but player , npcs and creatures no problem . I need the script from carryweight . there will run and jump off. that works too. disableplayercontrols 1 0 0 0 0 0 0 or disableplayercontrols 0 0 0 0 0 0 1 ... disable all moves onr sneaking. i will jumpen and run disable . MfG Sniper Thanks:this works : Begin OnTriggerEnter player if getactionref == playerref player.DamageAV LeftMobilityCondition 1 player.setActorValue SpeedMult 50 player.RestoreAV LeftMobilityCondition 1 endifEndand return Begin OnTriggerEnter player if getactionref == playerref player.DamageAV LeftMobilityCondition 1 player.setActorValue SpeedMult 100 player.RestoreAV LeftMobilityCondition 1 endifEnd MfG Sniper Edit: The Result: https://www.youtube.com/watch?v=QrXvldQ0g_U&feature=y Edited December 15, 2014 by Snlper Link to comment Share on other sites More sharing options...
Recommended Posts