Frictional Games Forum (read-only)
Armour helmet - Printable Version

+- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum)
+-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html)
+--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html)
+---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html)
+---- Thread: Armour helmet (/thread-20920.html)



Armour helmet - Storfigge - 03-25-2013

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?


RE: Armour helmet - PutraenusAlivius - 03-25-2013

Code:
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!


RE: Armour helmet - Storfigge - 03-25-2013

(03-25-2013, 01:55 PM)JustAnotherPlayer Wrote:
Code:
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.


RE: Armour helmet - PutraenusAlivius - 03-25-2013

(03-25-2013, 02:07 PM)Storfigge Wrote:
(03-25-2013, 01:55 PM)JustAnotherPlayer Wrote:
Code:
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.