Search the Community
Showing results for tags 'bis_fnc_addrespawninventory'.
Found 1 result
-
How to create custom respawn inventory loadouts per unit
Solidsnacks posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
As the name implies, I'm asking advice on how to create custom respawn inventories per unit using BIS_fnc_addRespawnInventory. So here's the situation: I have a group placed in the editor, the group is named and each unit belongs to the group and has "US_ARMY_FT = group this" in their inits so they all belong to the same group. Each member is individually named "US_ARMY_FTL, AR etc. So they all have a specific variable name with a similar naming convention. Here's where it gets confusing. I'm able to use BIS_fnc_addRespawnInventory to give the group respawn inventories without a hiccup. The following is what I use for the loadouts. Everything's fine when I use this method, but I wanted to fine tune it so there would be more emphasis on role selection in the lobby and also to force players to use equipment appropriate to their class. So then I came up with this, which is more or less the same as above but references the unit's variable name. Whenever I try this second method it gives me an error saying that "us_army_ftl" is an undefined variable, which is ironic considering that it says nothing about the group I reference for respawn tickets. Additionally, I have other scripts and functions that reference the unit names I've applied and I've received no error messages about them and nothing has been logged in the RPT other than the undefined variable error to indicate anything has gone wrong. It's worth noting that despite the game throwing that specific script error on mission start and it not behaving the way I want it to it still gives me the custom classes that I defined in the Description.ext based on the entries above. So my questions are: How do you make a respawn menu with loadouts custom to the unit/object. Can you do that? Why does the script think my variable is undefined? Thanks in advance!- 7 replies
-
- mpscripting
- missionediting
-
(and 1 more)
Tagged with: