Frictional Games Forum (read-only)
[NEEDZ HELP] Displaying a simple message when grabbing/interacting with an object. - 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: [NEEDZ HELP] Displaying a simple message when grabbing/interacting with an object. (/thread-15023.html)



[NEEDZ HELP] Displaying a simple message when grabbing/interacting with an object. - GillFrog - 04-23-2012

So, here's what i want to do;
When i grab an object, i want a message to pop up.
I tried it, but it doesn't show up.
I really don't know what's the problem. Huh

Lang:

Quote:Message
Script:

Quote:void OnStart()

{
AddEntityCollideCallback("Player", "stephano1", "func_stephano", true, 1);
}

void func_stephano(string &in asEntity)
{
SetMessage("stephano", "stephano_message", 1);
}



RE: [NEEDZ HELP] Displaying a simple message when grabbing/interacting with an object. - Datguy5 - 04-23-2012

Wrong syntax use this instead: void func_stephano(string &in asChild, string &in asParent, int alState)


RE: [NEEDZ HELP] Displaying a simple message when grabbing/interacting with an object. - GillFrog - 04-23-2012

(04-23-2012, 03:22 PM)Datguy5 Wrote: Wrong syntax use this instead: void func_stephano(string &in asChild, string &in asParent, int alState)
THANK YOU!
[Image: 31018.png]



RE: [NEEDZ HELP] Displaying a simple message when grabbing/interacting with an object. - Datguy5 - 04-23-2012

Np Big Grin And thank you for the cookie :3


RE: [NEEDZ HELP] Displaying a simple message when grabbing/interacting with an object. - Stepper321 - 04-23-2012

[Image: 3576-objection.jpg]
Hey wait, your doing it wrong, the EntityCollideCallback function is for touching it! Go into the Entities tab of the 'Stephano' entity, And Playerinteractcallback you put func_stephano then edit it to this:

void func_stephano(string &in Entity)