Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[NEEDZ HELP] Displaying a simple message when grabbing/interacting with an object.
GillFrog Offline
Junior Member

Posts: 26
Threads: 7
Joined: Mar 2011
Reputation: 1
#1
Question  [NEEDZ HELP] Displaying a simple message when grabbing/interacting with an object.

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);
}
(This post was last modified: 04-23-2012, 03:43 PM by GillFrog.)
04-23-2012, 03:03 PM
Website Find
Datguy5 Offline
Senior Member

Posts: 629
Threads: 25
Joined: Dec 2011
Reputation: 12
#2
RE: [NEEDZ HELP] Displaying a simple message when grabbing/interacting with an object.

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

04-23-2012, 03:22 PM
Find
GillFrog Offline
Junior Member

Posts: 26
Threads: 7
Joined: Mar 2011
Reputation: 1
#3
RE: [NEEDZ HELP] Displaying a simple message when grabbing/interacting with an object.

(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]
04-23-2012, 03:31 PM
Website Find
Datguy5 Offline
Senior Member

Posts: 629
Threads: 25
Joined: Dec 2011
Reputation: 12
#4
RE: [NEEDZ HELP] Displaying a simple message when grabbing/interacting with an object.

Np Big Grin And thank you for the cookie :3

04-23-2012, 03:46 PM
Find
Stepper321 Offline
Senior Member

Posts: 263
Threads: 26
Joined: Nov 2011
Reputation: 8
#5
RE: [NEEDZ HELP] Displaying a simple message when grabbing/interacting with an object.

[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)

Signature to awesome to be displayed.
(This post was last modified: 04-23-2012, 05:50 PM by Stepper321.)
04-23-2012, 05:49 PM
Find




Users browsing this thread: 2 Guest(s)