Jump to content

toneisland85

Supporter
  • Posts

    3
  • Joined

  • Last visited

Posts posted by toneisland85

  1. Hi All

    I am very new to scripting but I am having a damn good go and Im trying to create a basic stash box that is linked to a workbench via workshopkeyword in a cell and I want to be able to summon that stash box from my inventory using OncontainerChanged. The object is placed in a cell under the world and has a linked Ref to a central workbench if that helps.

    Here is the script I have so far. It compiles but nothing happenes when I drop my misc item and the Papyrus log says item cannot be moved.

    Could someone please help me understand where I am going wrong? I have set the properties for the objectReference to point to the exact cell and object but still no luck.

     

    Scriptname GlobalStash:GlobalStashBox extends ObjectReference Const

    {This is my first script}


    ObjectReference Property TMS_DeployableGlobalStash Auto Const

     

    ;-- Variables ---------------------------------------

    ;-- Functions ---------------------------------------

     

    Event OnContainerChanged(ObjectReference akNewContainer, ObjectReference akOldContainer)
        Actor PlayerRef = Game.GetPlayer()
            
        If (akNewContainer == None && akOldContainer == Game.GetPlayer())
        ;Spawn Form
         TMS_DeployableGlobalStash.MoveTo(Game.GetPlayer())
        EndIf
        
    EndEvent

  2. 17 hours ago, AaronOfMpls said:

    Welcome! 👋

    What game is this for?  I'm guessing one of the Fallout games or maybe Starfield, but you didn't say which one.  (And I haven't modded any of then much, or I'd answer here.)

    Also, Fallout 3, NV, and 4 -- and Starfield -- all have their own forums here.  Go to Game Communities at the top of any forum page, and hit Join Community on the game forums you want to post in.

    Hi yes I realised eventually and actually posted it in the FO4 community and got my answer 🙂 Thanks for the heads up!

    • Like 1
  3. 12 hours ago, adb3nj said:

    Grenades have a projectile override, which have an associated explosion. You can attach an object effect to the explosion, which has an enchantment, which has a base effect, and to the base effect you can attach a script that deploys a turret on impact. Yes, it's a bit of a head-spinner! The script itself should be relatively simple though.

    Edit – I don't think you need a script at all, actually! Or object effects or any of that. There's a field in the explosion for 'placed object'. Just fill that with your turret ID.

    Dude you are an absolute life saver thank you! I did as you suggested and created two new forms (Explosion and Projectile) and once both of these were linked I linked them to a duplicate cryo grenade form which was linked to my Turret Actor and BAAAM! Works like a dream!!!!

  4. Hi All

    I wonder if someone could help? im a newbie in the world of modding and have been working on a deployable turrets mod. The script I am currently using allows me to drop (Thanks Kinggath) from a misc item and deploy a turret but I would love to make it so a thrown mine or grenade triggers the deployment of the turret.

    Could anyone please point me in the right direction of where to start with this script please? I.e what event do I need for this an should i be using keywords on the grenade itself?

     

    Again Im a complete newbie but really eager to learn so any advice would be incredible 🙂

     

    Thanks

  5. Hi All

    I wonder if someone could help? im a newbie in the world of modding and have been working on a deployable turrets mod. The script I am currently using allows me to drop (Thanks Kinggath) from a misc item and deploy a turret but I would love to make it so a thrown mine or grenade triggers the deployment of the turret.

    Could anyone please point me in the right direction of where to start with this script please? I.e what event do I need for this an should i be using keywords on the grenade itself?

     

    Again Im a complete newbie but really eager to learn so any advice would be incredible 🙂

     

    Thanks

×
×
  • Create New...