Frictional Games Forum (read-only)
[SCRIPT] Flashlight with a scripts - 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: [SCRIPT] Flashlight with a scripts (/thread-29486.html)



Flashlight with a scripts - Icaab2608 - 01-11-2015

Hello.Is it possible to do so:when you turn on the flashlight,then activated a scripts?


RE: Flashlight with a scripts - Mudbill - 01-11-2015

Quote:void SetLanternLitCallback(string& asCallback);

Sets the function to call when the player uses his lantern.
Callback syntax: MyFunc(bool abLit)



RE: Flashlight with a scripts - Icaab2608 - 01-12-2015

(01-11-2015, 10:37 PM)Mudbill Wrote:
Quote:void SetLanternLitCallback(string& asCallback);

Sets the function to call when the player uses his lantern.
Callback syntax: MyFunc(bool abLit)
Thank you!