Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Armour helmet
Storfigge Offline
Member

Posts: 101
Threads: 31
Joined: Sep 2012
Reputation: 0
#1
Question  Armour helmet

Is it possible to remove the helmet on an armour via a script? Like there is an armour in the room, then I pick up a key and the helmet disappears?

(This post was last modified: 03-25-2013, 01:40 PM by Storfigge.)
03-25-2013, 01:40 PM
Find
PutraenusAlivius Offline
Posting Freak

Posts: 4,713
Threads: 75
Joined: Dec 2012
Reputation: 119
#2
RE: Armour helmet

void OnStart()
{
    SetEntityCallbackFunc("KEYNAME", "HelmetDissapear");
}

void HelmetDissapear(string &in asEntity, string &in type)
{
        SetEntityActive("HELMETNAME", false);
}
Change KEYNAME to whatever your key name is and HELMETNAME to whatever your helmet's name on the armor.
NOTE: THE HELMET AND THE ARMOR HAS TO BE A SEPERATE ENTITY!

"Veni, vidi, vici."
"I came, I saw, I conquered."
(This post was last modified: 03-25-2013, 01:56 PM by PutraenusAlivius.)
03-25-2013, 01:55 PM
Find
Storfigge Offline
Member

Posts: 101
Threads: 31
Joined: Sep 2012
Reputation: 0
#3
RE: Armour helmet

(03-25-2013, 01:55 PM)JustAnotherPlayer Wrote:
void OnStart()
{
    SetEntityCallbackFunc("KEYNAME", "HelmetDissapear");
}

void HelmetDissapear(string &in asEntity, string &in type)
{
        SetEntityActive("HELMETNAME", false);
}
Change KEYNAME to whatever your key name is and HELMETNAME to whatever your helmet's name on the armor.
NOTE: THE HELMET AND THE ARMOR HAS TO BE A SEPERATE ENTITY!

But the helmet and armour are the same entity. There is no complete armour without a helmet in the editor.

03-25-2013, 02:07 PM
Find
PutraenusAlivius Offline
Posting Freak

Posts: 4,713
Threads: 75
Joined: Dec 2012
Reputation: 119
#4
RE: Armour helmet

(03-25-2013, 02:07 PM)Storfigge Wrote:
(03-25-2013, 01:55 PM)JustAnotherPlayer Wrote:
void OnStart()
{
    SetEntityCallbackFunc("KEYNAME", "HelmetDissapear");
}

void HelmetDissapear(string &in asEntity, string &in type)
{
        SetEntityActive("HELMETNAME", false);
}
Change KEYNAME to whatever your key name is and HELMETNAME to whatever your helmet's name on the armor.
NOTE: THE HELMET AND THE ARMOR HAS TO BE A SEPERATE ENTITY!

But the helmet and armour are the same entity. There is no complete armour without a helmet in the editor.
Yeah but, there are parts for it. There's the breast plate, the glove, boot and the head. Just arrange them. Check the Static Physics box at all parts except the head. This keeps it from falling.

Hey, dude. So i made an armor out of the pieces and....
[Image: z4i6e.jpg]

NOT BAD.

"Veni, vidi, vici."
"I came, I saw, I conquered."
(This post was last modified: 03-25-2013, 02:40 PM by PutraenusAlivius.)
03-25-2013, 02:10 PM
Find




Users browsing this thread: 2 Guest(s)