Comments (4)
Another problem I had was getting there to be a chance of nothing for a random item.
If you just you double quotes like this
#define I_backpack "","backpack_class1","backpack_class2"
[I_backpack] call FNC_AddItemRandom;
it breaks.
I was able to get around it by using brackets around everything like this
#define I_backpack [],["backpack_class1"],["backpack_class2"]
[I_backpack] call FNC_AddItemRandom;
it works, and extra [] cal be added like this
[],[],[I_backpack] call FNC_AddItemRandom;
to adjust the chance of nothing on a per case basis.
from olsen-framework-arma-3.
Currently only solution to your problem is to randomize parts of gearscript yourself.
This is pretty complex task, only person that can edit gearscript without breaking it is Olsen, so it's only up to him if he wants to do this.
from olsen-framework-arma-3.
Yah, the loadouts I'm making are definitely pushing the boundaries of what the gearscript is capable of.
from olsen-framework-arma-3.
It would be great to have a cleaner way of choosing nothing from a randomised list
from olsen-framework-arma-3.
Related Issues (20)
- add ACEX fortify
- Disconnect spelled incorrectly in Disconnect Control init.sqf HOT 1
- Add better params checking to functions
- option for empty gear in random gear array
- add safezone checking for PiP driver display
- Setting team type to player doesn't prevent AI from being counted by Casualty Count
- settings.sqf doesn't account for Headless Clients HOT 1
- Make JIP deny ignore people that lost connection during mission
- Spectator muting doesn't work
- fnc_addItemOrg gives a generic error in expression with Tanks DLC HOT 1
- disable driver's view pip on player death
- Feature Request: Use Ace_Spectator instead of EG_Spectator
- [Headless_ai] Make VCOM AI optional HOT 2
- [Headless_ai] Make params in HC_fnc_ExportSQF case insensitive HOT 2
- [Headless_ai] Spawn AI on server if HC is not present HOT 1
- viewing map broken in self actions
- Make sandbag deleting script into module
- Use vanilla inArea
- EG Spectator module not properly hiding units after death in multiplayer
- EG Spectator Enhancement
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from olsen-framework-arma-3.