Please login or register.

Login with username, password and session length
Advanced search  

News:

For WME related articles and tutorials visit WME Resource Center.

Author Topic: entity talk  (Read 2675 times)

0 Members and 1 Guest are viewing this topic.

dreamfighter

  • Supporter
  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 28
    • View Profile
entity talk
« on: May 09, 2008, 05:43:33 PM »

Hello everybody

someone can help me?
at the start of my scene, my actor walk across the scene and start to talk with a character (animated entity).
but how can i do to make reply of my entity ?
so in my scene edit script i put:

  #include "scripts\base.inc"

// here comes the stuff which initializes the scene

actor.SkipTo(200, 300);
actor.GoTo(540, 540);
actor.Direction = DI_RIGHT;
actor.Active = true;
actor.Talk("Hello ! ");
this.Talk("Hello, miss."); ??????????

////////////////////////////////////////////////////////////////////////////////

so my actor walk and talk (said hello) to the entity, but i don't know how to do to have the reply (hello miss) of the entity.
someone can help me?
thanks
« Last Edit: May 09, 2008, 05:45:11 PM by dreamfighter »
Logged

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5683
    • View Profile
    • Dead:Code Site
Re: entity talk
« Reply #1 on: May 09, 2008, 07:31:12 PM »

var SomeEntity = Scene.GetNode("entity_name");
SomeEntity.Talk("blah blah");
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave

dreamfighter

  • Supporter
  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 28
    • View Profile
Re: entity talk
« Reply #2 on: May 10, 2008, 11:31:53 AM »

thank you mnemonic for your reply
Logged
 

Page created in 0.02 seconds with 20 queries.