Frictional Games Forum (read-only)
Lantern script - 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 (https://www.frictionalgames.com/forum/forum-35.html)
+--- Thread: Lantern script (/thread-5143.html)

Pages: 1 2


RE: Lantern script - Hooumeri - 10-22-2010

PHP Code:
void PickLanternUnlockDoor(string &in EntityNamestring &in Type)
{
if(
Type == "OnPickup") {
SetSwingDoorLocked("door_name"falsetrue);
}


I found this from another thread, could I make this work with mine?


RE: Lantern script - Mofo - 10-22-2010

(10-22-2010, 03:59 PM)Hooumeri Wrote:
PHP Code:
void PickLanternUnlockDoor(string &in EntityNamestring &in Type)
{
if(
Type == "OnPickup") {
SetSwingDoorLocked("door_name"falsetrue);
}


I found this from another thread, could I make this work with mine?

sure, works fine.


RE: Lantern script - Hooumeri - 10-22-2010

(10-22-2010, 04:13 PM)Mofo Wrote:
(10-22-2010, 03:59 PM)Hooumeri Wrote:
PHP Code:
void PickLanternUnlockDoor(string &in EntityNamestring &in Type)
{
if(
Type == "OnPickup") {
SetSwingDoorLocked("door_name"falsetrue);
}


I found this from another thread, could I make this work with mine?

sure, works fine.

Then what should I type to "if(Type == "____") instead of OnPickup?


RE: Lantern script - Hooumeri - 10-22-2010

Something like OnActive?


RE: Lantern script - ThePaSch - 10-22-2010

(10-22-2010, 09:11 PM)Hooumeri Wrote: Something like OnActive?

Nope, it's not possible with my script piece, no matter what you replace OnPickup with. "OnActive" is not a valid Type.


RE: Lantern script - nofsky - 10-23-2010

If you check the tooltip on the CallbackFunc text box you see that the available types are OnPickup, Break and OnIgnite. I don't think there's more than that.


RE: Lantern script - Hooumeri - 10-23-2010

(10-23-2010, 01:25 AM)nofsky Wrote: If you check the tooltip on the CallbackFunc text box you see that the available types are OnPickup, Break and OnIgnite. I don't think there's more than that.

But when I checked them from the script functions page, it said

"* Callback syntax: MyFunc(string &in entity, string &in type). Type depends on entity type and includes: "OnPickup", "Break", "OnIgnite", etc



RE: Lantern script - ThePaSch - 10-23-2010

(10-23-2010, 02:45 PM)Hooumeri Wrote: But when I checked them from the script functions page, it said

"* Callback syntax: MyFunc(string &in entity, string &in type). Type depends on entity type and includes: "OnPickup", "Break", "OnIgnite", etc

"OnActive" still doesn't exist, afaik.


RE: Lantern script - Pandemoneus - 10-23-2010

Would be "OnActivate" or "OnActivation" anyway, "OnActive" isn't English. Tongue


RE: Lantern script - Hooumeri - 10-23-2010

(10-23-2010, 07:43 PM)Pandemoneus Wrote: Would be "OnActivate" or "OnActivation" anyway, "OnActive" isn't English. Tongue

Is there a way to see all of the possible commands you can type in there?