Jump to content
Sign in to follow this  
perfk

How to make a player into a Suicide bomber - TvT mission

Recommended Posts

Hey all,

I would like to be able to give all opfor players the option to become a suicide bomber. - but only when he has a specific item in his weapon slot (or backpack slot)

Also, my mission is a respawn mission, so i would need to be able to do it again, as long as the unit has the item.

This is the code i use on all my opfor guys (every opfor can use this option, if they have the item on their back)

_boomid = this addAction ["DETONATE", "suicide.sqf", [], 5, false, true, "", " ""ACE_ANPRC77"" in (weapons _this)"];

and here is my suicide.sqf file:

_target = _this select 0;
_caller = _this select 1;
_boomid = _this select 2;

"GrenadeHand" createVehicle getpos _caller;

_target removeAction _boomid;

This work in the sense, that if i pick up the item, i can blow my self up. but if i respawn, i'm not able to blow my self up anymore.

Does anyone have an idea on how to fixe the above, or maybe a better way of doing it?

Edited by Perfk

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  

×