Jump to content
Sign in to follow this  
StryDa

Ammo type change?

Recommended Posts

Is it possible to change the ammo of a vehicle... Say have a Vulcan firing civilians :P

Thanks

-StryDa-

Share this post


Link to post
Share on other sites

Vulcan firing civilians ?

Nah, or at least as far as I know not.

But you can have civilian firing vulcan rounds (I've played arround with that - good fun) or something like this.

Just use addWeapon "some_weapon" and addMagazine "some_magazine" commands into init line of an unit.

You can find weapons and magazines names here.

Share this post


Link to post
Share on other sites

ok sad_o.gif thanks.... Civilians with miniguns :P sounds cool

Share this post


Link to post
Share on other sites

No probs wink_o.gif .

Just a hint: they don't have any weapons models, there are just bullets comming out of they're chest biggrin_o.gif .

Share this post


Link to post
Share on other sites

hmmm sorry... but the addweapon and magazine things aren't working.

Share this post


Link to post
Share on other sites

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">vulcan addeventhandler ["fired",{_this execVM "civ.sqf"}]

civ.sqf

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">_projectile = nearestobject [_this select 0,_this select 4];

sleep 0.001;

_pos = getpos _projectile;

dir = getdir _projectile;

vel = velocity _projectile;

deletevehicle _projectile;

"Civilian" createUnit [_pos, group player,"this setdir dir; this velocity vel; [this] join grpNull"];

Share this post


Link to post
Share on other sites

StryDa: It is wink_o.gif .

Example:

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">

this addMagazine "2100Rnd_20mm_M168"; this addWeapon "M168"

KyleSarnik:

OMG !!!

If that thingy's working ... rofl.gif

Gonna try ASAP !

Share this post


Link to post
Share on other sites

does that fire civilians, cause it just makes tonnes of people in a squad with me :S

Share this post


Link to post
Share on other sites
does that fire civilians, cause it just makes tonnes of people in a squad with me :S

I never said it worked, it was just something I came up with on the spot. whistle.gif

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  

×