Frictional Games Forum (read-only)
Need help on Script. Activate Ladder Area? - 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: Need help on Script. Activate Ladder Area? (/thread-21732.html)



Need help on Script. Activate Ladder Area? - VeNoMzTeamHysterical - 06-05-2013

Hey i need some help on a script.
I want an emotion effect, With an text just like in the campaign.
Then i want there is gonna be a ladder active 'ladder script area'

But i know how to set an Entity Active but not an Script Area.

[Image: ank7jc.jpg]

Script here
Spoiler below!

void JakeStorageEmotion(string &in asArea)
{
StartEffectEmotionFlash("Messages", "JakesStorageEmotion", "ui_insanity_touch.snt");

SetEntityActive(JakeStorageEmotionArea, true);
}


Thanks for helping Wink


RE: Need help on Script. Activate Ladder Area? - DeAngelo - 06-05-2013

Setting a script area active is the exact same as a regular entity. Just

SetEntityActive("ScriptAreaName", true);

And make sure there are quotes "" around your entity name.


RE: Need help on Script. Activate Ladder Area? - VeNoMzTeamHysterical - 06-05-2013

(06-05-2013, 05:50 PM)DeAngelo Wrote: Setting a script area active is the exact same as a regular entity. Just

SetEntityActive("ScriptAreaName", true);

And make sure there are quotes "" around your entity name.

It gives an error when i do it >.<

I was thinking about script area is not an entity.

Its says it is not declared or something.

Nevermind i am so stupid >.<