Jump to content

Estremer

Member
  • Posts

    3
  • Joined

  • Last visited

Profile Information

  • Gender
    Man

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

Estremer's Achievements

  1. Estremer

    Modify Item

    This is the line that I find in the console (function: UpgradePropaneTank -- file: PropaneTank.lua line # 2). I suppose it indicates that if you call the function. I also tried the setReplaceOnDeplete ("Base.EmptyTank") although the EmptyTank item is created by me so I tried with its corresponding module "EmptyTank.EmptyTank". To shorten I have also used: - FindItem() instead of getItem() - setReplaceOnDeplete("Base.EmptyTank") - setReplaceOnDeplete("EmptyTank.EmptyTank") - ReplaceOnDeplete = "EmptyTank" => (I know enough about programming to know that this is not the correct way, but I was already desperate xp)
  2. Estremer

    Modify Item

    I have been trying to modify a vanilla item. My intention is that when the item is destroyed it will give another item in the inventory, just like the water bottle does. In order to do that I know that I have to add the ReplaceOnDeplete attribute but the ways that I have been trying have not worked. I just have lua left to try it with, although I have already tried this lines of code. function UpgradePropaneTank() ScriptManager().instance:getItem("Base.PropaneTank"):setReplaceOnDeplete("EmptyTank"); end Events.OnGameBoot.Add(UpgradePropaneTank); I have used OnLoad and OnGameStart
  3. I put my Character to do squats, then I had to pause the game for a moment and when I resumed the game, my character was squatting indefinitely. I had to go in and out of the game to get him to stop squatting.
×
×
  • Create New...