Jonnerz 10 Posted June 20, 2009 (edited) I have a chicken and I want to explode when the user selects the action "Explode". I have this on the chicken: this addAction ["Explode","explode.sqs"] But I am unsure what to put in the script. I am also learning to script so explaining each function would be highly appreciated. Edited June 20, 2009 by Jonnerz Share this post Link to post Share on other sites
Junker 0 Posted June 20, 2009 something like this :- _veh = chickenname _boom = "ARTY_R_227mm_HE" createVehicle (getpos _veh); exit BTW> stand well back 70 > 100m away :D Share this post Link to post Share on other sites
Jonnerz 10 Posted June 20, 2009 Nice! thanks. Also, do you know where I can get a list of things like "ARTY_R_227mm_HE". The classnames sticky doesn't have these. (Or I don't know what I am looking for :P) Share this post Link to post Share on other sites
IndeedPete 1038 Posted June 20, 2009 I think, you can find them here. Share this post Link to post Share on other sites
manzilla 1 Posted June 21, 2009 something like this :- _veh = chickenname _boom = "ARTY_R_227mm_HE" createVehicle (getpos _veh); exit BTW> stand well back 70 > 100m away :D God damn what a wicked idea. Thanks for the code Junker and thanks to Jonnerz for posting this. Why I didn't think of this... not sure. This is gonna get messy! :pet13: Share this post Link to post Share on other sites
december 0 Posted June 21, 2009 I knew Junker would know how to do that LOL Share this post Link to post Share on other sites
Muzza 0 Posted June 21, 2009 How do you trigger thhe chicken explosion? When a trigger is activated "_boom = true?" Share this post Link to post Share on other sites
Junker 0 Posted June 21, 2009 How do you trigger thhe chicken explosion?When a trigger is activated "_boom = true?" [chickenname] exec "scriptname.sqs" what u need is a condition either in the script or in the trigger Something like : chickenname distance player < 20 Share this post Link to post Share on other sites
Tajin 349 Posted June 22, 2009 "scriptname.sqs" *yuck* since arma1 I'm trying to convert people to only use sqf, seems like I've failed so far ;) Anyway try something like this if you need config-entrys: _rootclass = "CfgAmmo"; _count = count (configFile >> _rootclass); for [{_x=0}, {_x<_count}, {_x=_x+1}] do { sleep 0.001; _entry=(configfile >> _rootclass) select _x; _name = configName _entry; debugLog _name; }; This should dump all ammo-classnames to your .rpt file. Share this post Link to post Share on other sites