Announcement

Collapse
No announcement yet.

Questions concerning objects ! :))

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Questions concerning objects ! :))

    Hey folks!

    I'm trying to find a way to add an item to a backpack but that item will be used in a trigger so i need to give it a name...ive been looking for a couple hours but no luck....

    Im seeing two ways of doing it...directly via script (i dont know the command to assign a name to an object inside a cargo) ...or by placing it directly on the map with the editor, naming it then somehow place it in a backpack (i was thinking via special : cargo , but coulnt find anything referencing that)

    Third solution is to place the object directly on the ground for the player to find, but i find this solution less elegant and might be difficult to find in a forest.


    Your inputs are welcome!

    -Rat
    sigpic


    Dont be shy, add me on Steam by clicking the icon below.




  • #2
    Re: Questions concerning objects ! :))

    I've tried this before in a mission (Quick Delivery) for TacticalStrike. The object is likely only stored in an array as a type of item in the backpack and then recreated when you take it out. Thus the object has a different name every time to put it in or take it out of a backpack.

    Thus I put an item like a map on the ground. I named it "myMap". Then when I put it in the backpack and called for a list of items in the backpack I could see there was an item of the same type I'd placed in there but it no longer had the name "myMap". I'm sure it no longer exists as a separate item. When I took the item back out it was no longer called "myMap" just as I had created a new object of that type and had not assigned a name to it.

    Anyone know how you can handle this?
    |TG-189th| Unkl
    ArmA 3 Game Officer
    Dean of Tactical Gamer University
    189th Infantry Brigade Member
    SUBMIT A RIBBON NOMINATION OR CONTACT AN ARMA ADMIN
    "We quickly advance in the opposite direction and take cover in a house on the SW side of town." - BadStache

    Comment


    • #3
      Re: Questions concerning objects ! :))

      https://community.bistudio.com/wiki/...t_Handlers#Put

      https://community.bistudio.com/wiki/..._Handlers#Take

      https://community.bistudio.com/wiki/setVariable

      https://community.bistudio.com/wiki/getVariable
      Yink | Vanilla Pilot | Killer of Stirling | CS GOD | Projects Team

      Comment


      • #4
        Re: Questions concerning objects ! :))

        Sweet! Thanks Yink!
        sigpic


        Dont be shy, add me on Steam by clicking the icon below.



        Comment

        Connect

        Collapse

        TeamSpeak 3 Server

        Collapse

        Advertisement

        Collapse

        Twitter Feed

        Collapse

        Working...
        X