Jump to content
Sign in to follow this  
gossamersolid

Anything that enters the trigger gets destroyed?

Recommended Posts

I want to make a trigger where if anything (manned,player,unmanned,etc) goes into this trigger, it kills it immediately (setdamage=1.0?).

How would I go about doing this? I believe I'd make a trigger that has a detection of anybody and it's set on repeat, but I'm not exactly sure what code I should use.

Or should this all be in a script file instead?

Any help would be highly appreciated

Share this post


Link to post
Share on other sites

ANYBODY PRESENT REPEATABLE

OnAct: {_x setDamage 1} forEach thislist;

Or somethingâ„¢ :P

Share this post


Link to post
Share on other sites

{
{
	deletevehicle _x;
} foreach crew vehicle _x;
if (not isnull _x) then {
	deletevehicle _x;
};
} foreach thislist;

Would be better off if you don't need explosions or elaborate player deaths.

Share this post


Link to post
Share on other sites

My alltime favourite in this one... Throw them to orbit(well ok, not quite... but still high!) :)

{
_dir = vectorDir _x;
_x setVelocity[(_dir select 0)*200,(_dir select 1)*200,200];
} forEach thislist;

Edited by Fincuan

Share this post


Link to post
Share on other sites

{
{
	deletevehicle _x;
} foreach crew vehicle _x;
if (not isnull _x) then {
	_x setdamage 1;
};
} foreach thislist;

Vehicle explosions but players deleted.

Share this post


Link to post
Share on other sites
My alltime favourite in this one... Throw them to orbit(well ok, not quite... but still high!) :)

{
_dir = vectorDir _x;
_x setVelocity[(_dir select 0)*200,(_dir select 1)*200,200];
} forEach thislist;

I tried this, its hilarious!

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  

×