Jump to content
⚠ Known Issue: Media on User Profiles ×

213410

Members
  • Posts

    7
  • Joined

  • Last visited

Everything posted by 213410

  1. Thank you for advices, I will use them in future. The problem was actually split in two halves: (1) There was two scripts in one boots and they didn't work together. So I integrated one to another (this one into bigger script). (2) Second script used RegisterForSingleUpdate() and worked only on update, so I needed to make first script work on update too. I omitted entire code (it is very big), the result of added first script looks like this: Event OnUpdate() Actor akActor = GetTargetActor(); If akActor.IsRunning() || akActor.IsSprinting() Debug.Notification("No") akActor.PushActorAway(akActor, 0) Utility.Wait(7) endif RegisterForSingleUpdate(0.1); endEventUtility.Wait() was added for character to stand up after falling, otherwise there will be endless loop of PushActorAway().
  2. Bump. I think I'm doing it totally wrong, but I can't understand where is error.
  3. Hello! Recently I started to make a script that would prevent player from running (don't ask why, it's complicated:happy:). The idea was to force player walking by making running impossible via "pushactoraway" - when player wants to run, game will throw him/her on ground. This effect should be attached to ebony boots (for example), so when player equips it, the effect is added until unequipped. This is the code I have currently made: Scriptname EbonyBootsWalk extends ObjectReference Actor Property PlayerREF Auto Armor Property EbonyBoots Auto Event OnEquipped(Actor akActor) if akActor == Game.GetPlayer() if (PlayerREF.IsEquipped(EbonyBoots) == 1) && (PlayerREF.IsRunning() == True) Debug.Notification("No") PlayerREF.PushActorAway(PlayerREF, 0.1) endif endif EndEvent It is not working at all and I don't know why. Need some help, please. Thank You.
  4. I will try to attach my script to quest, may be this will help. Thank you for answer.
  5. Bump. Can anyone share example of working OnControlDown event?
  6. Hello! I recently searched for mod that prevents player from running and sprinting and found idea, that it could be realised via SKSE and controls. So I tried to make a script, that checks if user equipped specific item (my script is attached to ebony boots), it then checks if player is running or sprinting and if so, holds shift button with player controls. The problem - nothing is happening in game. I think I made something horribly wrong with code, so I need help. I made only "Forward" for testing purposes, later I want to extend script for other controls. Scriptname ForceWalk extends Form ;Actor Property PlayerREF Auto ;Armor Property EbonyBoots Auto int bEquipped = 0 Event OnEquipped(Actor akActor) if akActor == Game.GetPlayer() bEquipped = 1 RegisterForControl("Forward") endif endEvent Event OnUnequipped(Actor akActor) if akActor == Game.GetPlayer() bEquipped = 0 UnregisterForControl("Forward") endif endEvent event OnControlDown(string control) if (control == "Forward") if Game.GetPlayer().IsRunning() == 1 || Game.GetPlayer().IsSprinting() == 1 if bEquipped == 1 Input.HoldKey(42) Debug.Notification("Forward") endif endif endif endEventPlease, help.
×
×
  • Create New...