bombajack

[SOLVED] Kill sensor

7 posts in this topic

Posted (edited)

Hello scripters!

I need little help.How can i do simple script for kill player if enter to the senzor? (created in editor)

 

Thank you!

 

EDIT:I got it....in editor create sensor and add simple command : player setDamage 1;

then, if you enter to sensor area,you died.

 

Edited by bombajack

Share this post


Link to post
Share on other sites

Just out of curiosity, what do you plan on doing with this?

Share this post


Link to post
Share on other sites
Advertisement
2 hours ago, bombajack said:

Hello scripters!

I need little help.How can i do simple script for kill player if enter to the senzor? (created in editor)

 

Thank you!

 

EDIT:I got it....in editor create sensor and add simple command : player setDamage 1;

then, if you enter to sensor area,you died.

 

maybe set a warning in it?

restricted area

sleep 5

leave now or be killed

sleep 3

set damage

 

 

depends on your idea ofcourse

1 person likes this

Share this post


Link to post
Share on other sites
24 minutes ago, Mr Sin said:

Just out of curiosity, what do you plan on doing with this?

for example-restricted areas...

Share this post


Link to post
Share on other sites

copypasted from A2

 

From mission file

   class Item3
        {
            position[]={secretlocation};
            a=650;
            b=500;
            activationBy="WEST";
            repeating=1;
            interruptable=1;
            age="UNKNOWN";
            name="AdminBase";
            expCond="(vehicle player) in thislist;";
            expActiv="adminbase = [] execVM ""Scripts\adminbase.sqf"";";
            expDesactiv="terminate adminbase; titleText [""You have left the Admin Base!"", ""PLAIN DOWN"", 3];";
            class Effects
            {
                titleType="TEXT";
                titleEffect="PLAIN DOWN";
                title="You are entering a restricted zone.";
            };
        };

 

adminbase.sqf

if ((getPlayerUID player) in ["xxxxxx"]) then {
titleText ["Hello Admin.  Welcome back.", "PLAIN DOWN", 3];
} else {
titleText ["You are entering a restricted zone, please turn back now or face certain death...", "PLAIN DOWN", 3];
sleep 15;
titleText ["You have 1 minute to turn back...", "PLAIN DOWN", 3];
sleep 15;
titleText ["You have less than 45 seconds to leave..", "PLAIN DOWN", 3];
sleep 15;
titleText ["You have less than 30 seconds to leave.. We aren't kidding!", "PLAIN DOWN", 3];
removeAllWeapons player;
sleep 15;
titleText ["You have less than 15 seconds to leave (you're about to die!)...", "PLAIN DOWN", 3];
sleep 15;
titleText ["You were warned..!", "PLAIN DOWN", 3];
sleep 5;
player setDamage 1;
};

 

probably needs some tweaking for arma 3

Share this post


Link to post
Share on other sites

I don't know if anyone managed to port this or not, but I see these scripts working well with each other.

 

Share this post


Link to post
Share on other sites

We have closed this thread and marked it as solved.

Share this post


Link to post
Share on other sites
Advertisement
Guest
This topic is now closed to further replies.

  • Recently Browsing   0 members

    No registered users viewing this page.