_HXPE
Member-
Content Count
13 -
Joined
-
Last visited
-
Medals
Community Reputation
2 NeutralAbout _HXPE
-
Rank
Private First Class
-
Spawning items at player corresponding to what random number they get?
_HXPE replied to _HXPE's topic in ARMA 3 - MISSION EDITING & SCRIPTING
To post code? Haha Will do -
Spawning items at player corresponding to what random number they get?
_HXPE replied to _HXPE's topic in ARMA 3 - MISSION EDITING & SCRIPTING
@Harzach, managed to delete bag after a given amount of time, but it stays there until someone tries to pick it up.. -
Spawning items at player corresponding to what random number they get?
_HXPE replied to _HXPE's topic in ARMA 3 - MISSION EDITING & SCRIPTING
@Harzach You really have gone above and beyond, I really appreciate all the help from everyone, thank you a lot, really! 😁 I’m keen to check this out when I get home from work. Thank you once again -
Spawning items at player corresponding to what random number they get?
_HXPE replied to _HXPE's topic in ARMA 3 - MISSION EDITING & SCRIPTING
@ZaellixA definitely will today, ran out of time yesterday to load up arma -
Spawning items at player corresponding to what random number they get?
_HXPE replied to _HXPE's topic in ARMA 3 - MISSION EDITING & SCRIPTING
@ZaellixA I was thinking I could probably do it with an array and call the randomSelect command, then just createVehicle command for whatever item the ramdomSelect lands on, I’d have to define variables for that tho wouldn’t I? -
Spawning items at player corresponding to what random number they get?
_HXPE replied to _HXPE's topic in ARMA 3 - MISSION EDITING & SCRIPTING
@Joe98 would it be possible to have the items invisible until the number is rolled and then just set them visible? -
Spawning items at player corresponding to what random number they get?
_HXPE replied to _HXPE's topic in ARMA 3 - MISSION EDITING & SCRIPTING
@Harzach At work right now will post when I get home -
Spawning items at player corresponding to what random number they get?
_HXPE replied to _HXPE's topic in ARMA 3 - MISSION EDITING & SCRIPTING
@ZaellixA so on the object (a bag) init I have this this addAction ["Roll For Items", "RollForItems.sqf"]; how would I make that a remoteExec -
Spawning items at player corresponding to what random number they get?
_HXPE replied to _HXPE's topic in ARMA 3 - MISSION EDITING & SCRIPTING
@Harzach Tested it out with just a floor of 2, doesn't seem to do anything, do I need to specify "_i" as anything? -
Spawning items at player corresponding to what random number they get?
_HXPE replied to _HXPE's topic in ARMA 3 - MISSION EDITING & SCRIPTING
@Harzach thank you! 😀 I was just looking to place them on the ground near the player anyway instead of just straight into the inventory. -
Spawning items at player corresponding to what random number they get?
_HXPE replied to _HXPE's topic in ARMA 3 - MISSION EDITING & SCRIPTING
@ZaellixA I could narrow it down, but I'm making a sort of dnd style mission for some friends to play on, so I want there to be 20 random number choices like rolling a D20. -
Spawning items at player corresponding to what random number they get?
_HXPE replied to _HXPE's topic in ARMA 3 - MISSION EDITING & SCRIPTING
@HarzachI'm using ACE -
_HXPE started following Spawning items at player corresponding to what random number they get?
-
Just joined the forum, hoping someone is able to shed a little light on what I could do to make this work. the hints are the items I would like to spawn depending on what random number the player gets. Thank you in advance. ☺️ A lot of the hints were just for debug purposes. hint "rolling for items"; sleep 3; hintSilent ""; switch (floor random 21) do { case 0: { hint "You fail terribly and find nothing.. You really do suck."; sleep 3; hintSilent ""; }; case 1: { hint "You Find Nothing!"; sleep 3; hintSilent ""; }; case 2: { hint "You Find Nothing!"; sleep 3; hintSilent ""; }; case 3: { hint "You Find Nothing!"; sleep 3; hintSilent ""; }; case 4: { hint "You Find Nothing!"; sleep 3; hintSilent ""; }; case 5: { hint "You Find a couple MRE's!"; sleep 3; hintSilent ""; }; case 6: { hint "You Find a couple MRE's!"; sleep 3; hintSilent ""; }; case 7: { hint "You Find a couple MRE's!"; sleep 3; hintSilent ""; }; case 8: { hint "You Find a couple MRE's!"; sleep 3; hintSilent ""; }; case 9: { hint "You Find a couple MRE's! & water!"; sleep 3; hintSilent ""; }; case 10: { hint "You Find a couple MRE's! & water!"; sleep 3; hintSilent ""; }; case 11: { hint "You Find a couple MRE's! & water!!"; sleep 3; hintSilent ""; }; case 12: { hint "You Find a few MRE's & water!"; sleep 3; hintSilent ""; }; case 13: { hint "You Find a few MRE's & water!"; sleep 3; hintSilent ""; }; case 14: { hint "You Find a few MRE's & water!"; sleep 3; hintSilent ""; }; case 15: { hint "You Find a few MRE's & water!"; sleep 3; hintSilent ""; }; case 16: { hint "You Find alot of MRE's & water!"; sleep 3; hintSilent ""; }; case 17: { hint "You Find alot of MRE's & water!"; sleep 3; hintSilent ""; }; case 18: { hint "You Find 1 month worth of MRE's & water!"; sleep 3; hintSilent ""; }; case 19: { hint "You Find 2 months worth of MRE's & water!"; sleep 3; hintSilent ""; }; case 20: { hint "You Find 3 months worth of MRE's & water!"; sleep 3; hintSilent ""; }; };