IPB


Welcome Guest ( Log In | Register )

 Forum Rules ArmedAssault.info Forum Rules
 
Reply to this topicStart new topic
> how can i create a magic box like in ACE ?
raphael
post Jan 2 2011, 17:16
Post #1


Member
***

Group: Members
Posts: 198
Joined: 26-December 07
From: france
Member No.: 1,940



hi, i would create a "magic box" script like the ACE one for my team,how can i do it with a simple script ? i know already how to make a ammobox refill by itself with this command :

// Setings
_amountWeapon = 20;
_amountAmmo = 100;
_refreshTime = 360; // refill every 5 minutes

_this allowDamage false;

// Loop forever
while {true} do
{

// Clear box
clearWeaponCargo _this;
clearMagazineCargo _this;

// Fill box

_this addWeaponCargo ["enter weapon name here", 1]; _this addMagazineCargo ["enter ammo name here", 1]


it will be thankfull if someone can help


--------------------
 
Quote Post
D@V£
post Jan 2 2011, 18:27
Post #2


Gee, I wish we had one of them doomsday machines.
Group Icon

Group: Moderators
Posts: 2,037
Joined: 13-November 06
From: Wales
Member No.: 155



Could be a bit more specific? Not everyone is familiar with all the features of ACE, so might have difficulty understanding what you want from a "magic box".


--------------------
The Rules - Nothing too complicated, follow these and we'll have no problems.
Moderation Feedback Thread - Tell everyone how much you hate me love me secretly fear that Mark is watching you while you sleep. secretly wish that Mark is watching you while you sleep.
Site Issues Thread - Complain about site issues here. We might even fix them!
Community Chatter Thread - Furthest Mud-sling gets a free subscription to "JdB Monthly".

QUOTE(Major Mike Shearer)
We can categorically state that we have not released man-eating badgers into the area.
QUOTE(Brace Belden)
A machine gun is like a woman, I don’t understand it, I’m afraid of it, and one day I’ll accidentally be killed by one.
 
Quote Post
JdB
post Jan 2 2011, 19:21
Post #3


Hipster addonmaker
*******

Group: Former .info Serviceman
Posts: 2,090
Joined: 1-November 06
From: Kingdom of the Netherlands
Member No.: 10



QUOTE(D@V£ @ Jan 2 2011, 18:27) *
Could be a bit more specific? Not everyone is familiar with all the features of ACE, so might have difficulty understanding what you want from a "magic box".


Seems to be an ammobox that refills itself every so often, so you never run out mellow.gif


--------------------
Creator of dodgy ArmA:CWA addons.

 
Quote Post
raphael
post Jan 2 2011, 23:57
Post #4


Member
***

Group: Members
Posts: 198
Joined: 26-December 07
From: france
Member No.: 1,940



no, excuse me for this, the "magic box" is a ammobox who's filled automaticaly with the weapon used in your game (add-on and vanilla )


--------------------
 
Quote Post
meetpeter
post Jan 19 2011, 06:06
Post #5


New Member
*

Group: Members
Posts: 1
Joined: 19-January 11
Member No.: 8,709



hey guys,
i have just joined and i like the concept.
i could not understand about "magic box"
anybody please guide me because i am new.
thanks in advance!!!!!


--------------------
Signature Violation
 
Quote Post
raphael
post Jan 20 2011, 21:57
Post #6


Member
***

Group: Members
Posts: 198
Joined: 26-December 07
From: france
Member No.: 1,940



CITATION(meetpeter @ Jan 19 2011, 06:06) *
hey guys,
i have just joined and i like the concept.
i could not understand about "magic box"
anybody please guide me because i am new.
thanks in advance!!!!!


like i said, it's a box who's filled automaticaly with your weapons and ammo used in your ArmA 2 ( vanilla & add-on ), i put here a script who refil the ammobox every 5min, so you never run off of munitions, the magic box script look like hard to get and to make because no one answer, and i understand.


--------------------
 
Quote Post

Reply to this topicStart new topic
3 User(s) are reading this topic (3 Guests and 0 Anonymous Users)
0 Members:

 



Lo-Fi Version Time is now: 26th April 2024 - 16:52