Frictional Games Forum (read-only)

Full Version: [NEEDZ HELP] Displaying a simple message when grabbing/interacting with an object.
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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);
}
Wrong syntax use this instead: void func_stephano(string &in asChild, string &in asParent, int alState)
(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]
Np Big Grin And thank you for the cookie :3
[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)