Jump to content
Sign in to follow this  
Jonnerz

Chicken Bomb

Recommended Posts

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 by Jonnerz

Share this post


Link to post
Share on other sites

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

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
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! :yay: :pet13:

Share this post


Link to post
Share on other sites

How do you trigger thhe chicken explosion?

When a trigger is activated "_boom = true?"

Share this post


Link to post
Share on other sites
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
"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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×