Registered Users
  • Content count

  • Joined

  • Last visited

Community Reputation

50 Excellent

1 Follower

About IronHunter

  • Rank
    Junior Member

Recent Profile Visitors

200 profile views
  1. The werebeaver code might be a good place too look. It overides actions and other default features and resets them when transforming back. It should mostly be in the woodie.lua file at least its a start.
  2. (Solved) Crit code

    No credit is needed, I am just happy to help. =) no offense intended and taken we all make mistakes, just trying to clear up confusion. Cheers
  3. (Solved) Crit code

    I wrote similar code to the one that he is using, which is also the thread I linked in my previous post. As long as he uses the self.inst within the function as this is where the magic is done that causes all the crits. Combat.CalcDamage = function(self, target, weapon, ...) Excuse the poor formating of the post, I am on mobile. The thread I posted is a solved one with nearly identical code to this one. E.g. self.inst.prefab == "esctemplate" in the if statement. Cheers
  4. (Solved) Crit code

    The comments make me believe you got it from this thread, which explains how to use it. Any instance of inst will have to be self.inst as inst is not defined by default. If you are planning on calling inst a lot in the code, maybe define inst locally e.g. local inst = self.inst at the top of your code around the same place as the other local variables are defined at the top. Cheers
  5. I remember the :IsOnValidGround() function checks if there is any ground beneath you, not valid ground is the ocean and the black void of the caves. Take note that by default items are deleted when they fall on said invalid ground, as for calculating distance I would check out how the rescue command is used its in the entityscript.lua Apparently FindNearbyLand in simutil.lua could be of use? Using the function EntityScript:GetDistanceSqToPoint(x, y, z) to figure out your distance from x,y,z that is returned from FindNearbyLand() Have a look at these files, and you can probably work something out, but this should get you started on the concept.
  6. Asking about crits again

    Is this what you want? I provided a couple of different answers here that may help, as well as explainations. Cheers, IronHunter