cupcake_actual
Member-
Content Count
64 -
Joined
-
Last visited
-
Medals
Community Reputation
13 GoodAbout cupcake_actual
-
Rank
Corporal
Recent Profile Visitors
The recent visitors block is disabled and is not being shown to other users.
-
I've been getting this recently too. For me, its only the long stone house mentioned above that's doing it. I've verified my game cache, still happening.
-
[Release] Simple Vehicle Shop System
cupcake_actual replied to hoverguy's topic in ARMA 3 - MISSION EDITING & SCRIPTING
I know you've combined these shops already, but i was wondering.. is there a way to set the vehicle spawn points based on the players side? So that there can be a shop for each side with their own respective spawn points OR can you set the vehicle spawn point to "find a safe place near the player who purchased the vehicle"? -
Check if player has any weapon or is gunner
cupcake_actual replied to cupcake_actual's topic in ARMA 3 - MISSION EDITING & SCRIPTING
anybody got any ideas? -
Check if player has any weapon or is gunner
cupcake_actual replied to cupcake_actual's topic in ARMA 3 - MISSION EDITING & SCRIPTING
lol, this is what i have now.. it kinda works but its a mess. I should also reiterate. If i'm the gunner in an attack helo, different ammo types trigger this script while others done. i.e. switching to the hydra triggers the script but not the cannon? 0 = [] spawn { while {true} do { waituntil { sleep 1; (weapons player) isEqualTo [] && (player ammo(vehicle player currentWeaponTurret [0]) == 0) && (player ammo(vehicle player currentWeaponTurret [1]) == 0) && (player ammo(vehicle player currentWeaponTurret [-1]) == 0)&& (player ammo(vehicle player currentWeaponTurret [2]) == 0) && (player ammo(vehicle player currentWeaponTurret [3]) == 0) && (player ammo(vehicle player currentWeaponTurret [4]) == 0) && (player ammo(vehicle player currentWeaponTurret [5]) == 0) && (player ammo(vehicle player currentWeaponTurret [6]) == 0) && (player ammo(vehicle player currentWeaponTurret [7]) == 0) }; hintSilent "cooldown"; sleep 5; hintSilent "not hostile!"; player setCaptive true; waituntil { sleep 1; !((weapons player) isEqualTo []) || !(player ammo(vehicle player currentWeaponTurret [0]) == 0) || !(player ammo(vehicle player currentWeaponTurret [1]) == 0) || !(player ammo(vehicle player currentWeaponTurret [-1]) == 0) || !(player ammo(vehicle player currentWeaponTurret [2]) == 0) || !(player ammo(vehicle player currentWeaponTurret [3]) == 0) || !(player ammo(vehicle player currentWeaponTurret [4]) == 0) || !(player ammo(vehicle player currentWeaponTurret [5]) == 0) || !(player ammo(vehicle player currentWeaponTurret [6]) == 0) || !(player ammo(vehicle player currentWeaponTurret [7]) == 0) }; hintSilent "hostile!"; player setCaptive false; }; }; -
Check if player has any weapon or is gunner
cupcake_actual replied to cupcake_actual's topic in ARMA 3 - MISSION EDITING & SCRIPTING
ah.. i see. is there a cleaner way to do this like [-1,0,1,2,3,4,5](not working), instead of individually? i've also noticed that some weapons dont register. for example a tank with multiple types of ammo, some of them will trigger this script others wont. -
Check if player has any weapon or is gunner
cupcake_actual replied to cupcake_actual's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Sorry, but this script is not working as it should. If a player is a door gunner or piloting an attack heli the script does not work. -
How to make a trigger spawn/teleport units and props once a trigger has been activated?
cupcake_actual replied to Danpanstan's topic in ARMA 3 - MISSION EDITING & SCRIPTING
you can place them like you want and maybe use the show/hide module? -
Check if player has any weapon or is gunner
cupcake_actual replied to cupcake_actual's topic in ARMA 3 - MISSION EDITING & SCRIPTING
0 = [] spawn { while {true} do { waituntil { sleep 1; (weapons player) isEqualTo [] && (player ammo(vehicle player currentWeaponTurret [0]) == 0) }; hintSilent "cooldown"; sleep 30; hintSilent "not hostile!"; player setCaptive true; waituntil { sleep 1; !((weapons player) isEqualTo []) || !(player ammo(vehicle player currentWeaponTurret [0]) == 0) }; hintSilent "hostile!"; player setCaptive false; }; }; -
Check if player has any weapon or is gunner
cupcake_actual replied to cupcake_actual's topic in ARMA 3 - MISSION EDITING & SCRIPTING
I'm so sorry for being such a noob here. I greatly appreciate your help @pierremgi. I'm still having trouble. this is my whole script. 0 = [] spawn { while {true} do { waituntil { sleep 1; (weapons player) isEqualTo [] && (player ammo(vehicle player currentWeaponTurret [0]) == 0) }; hintSilent "cooldown"; sleep 30; hintSilent "not hostile!"; player setCaptive true; waituntil { sleep 1; !(weapons player) isEqualTo [] || !(player ammo(vehicle player currentWeaponTurret [0]) == 0) // I tried && here as well, but OR seems more appropriate? }; hintSilent "hostile!"; player setCaptive false; }; }; the first half seems to be working. Im getting an error still "type array, expected bool" for the second half. regardless of using && or || thanks again for your help. -
Check if player has any weapon or is gunner
cupcake_actual replied to cupcake_actual's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Check that: weapons player isEqualTo [] && (player ammo (vehicle player currentWeaponTurret [0]) = 0) I cant seem to get this right, the above gives me errors for missing ")" but i cant seem to correct it. -
Check if player has any weapon or is gunner
cupcake_actual replied to cupcake_actual's topic in ARMA 3 - MISSION EDITING & SCRIPTING
ok, so this is working great! 0 = [] spawn { while {true} do { waituntil { sleep 1; (weapons player isEqualTo []) }; hintSilent "cooldown"; sleep 30; hintSilent "not hostile!"; player setCaptive true; waituntil { sleep 1; !(weapons player isEqualTo []) }; hintSilent "hostile!"; player setCaptive false; }; }; I also need to add a check for vehicle gunner. in this case being armed or being a gunner in a vehicle would yield the same result. something like this, but this isn't working... !(weapons player isEqualTo []) OR (gunner (vehicle player) == player) -
Check if player has any weapon or is gunner
cupcake_actual replied to cupcake_actual's topic in ARMA 3 - MISSION EDITING & SCRIPTING
what would i add to check for throwables? this is what i have now and it works for weapons: while {true} do { if (weapons player isEqualTo []) then {hint "no has weapon"; player setCaptive true;} else {player setCaptive false; hint "has weapon"}; }; i want there to be a delay when a player drops their weapons before it switches them to setCaptive true; if i use {hint "no has weapon"; sleep 15; player setCaptive true;} it causes a delay for switching to hostile also. which i don't want. -
Check if player has any weapon or is gunner
cupcake_actual posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
I need to check if a player has any weapon. I've got something like this, but its not working. For some reason I'm under the impression that == "" means "anything", but I don't think thats right. any help? also this needs to work for MP. init.sqf execVM "hostileCheck.sqf"; hostileCheck.sqf if (currentWeapon player == "") then { player setCaptive true; hint "no has weapon" } else { player setCaptive false; hint "has weapon" }; -
I need someone who can help me set a database for my server. I'm a total noob at database stuff. I'm using this in my mission, but would also like to add player location, gear, health, etc... to the list of things to be stored.
-
In Terrain builder, bulldozer becomes unresponsive after a few minutes. When i launch bulldozer everything works perfectly I can edit the terrain, move object, and all that. Yet, after 2 or 3 min, it becomes fatally unresponsive. I have no objects on my terrain. the lines that appear in my rpt at the time of crash are as follows, other than these lines, there seems to be nothing out of the ordinary. It was working perfectly a day or two ago, i have not changed anything. 15:58:34 [InitSoundMap] begin 15:58:34 [InitSoundMap] end