Wintermute Engine Forum

Wintermute Engine => Technical forum => Topic started by: Dionysius on February 15, 2008, 05:43:35 AM

Title: Several questions about 3d-animations & StickToRegion method
Post by: Dionysius on February 15, 2008, 05:43:35 AM
Well, I need some help.
I have this code:
Code: [Select]
  actor.GoToObject(this);
  actor.StickToRegion("pob_reg");
  actor.PlayAnim("open_lug");
  Game.TakeItem("creditCard");
  this.status = 1;
1. The actor sticks to region before that it has come to the object. How to fix this?
2. How to drop the effect of StickToRegion method?
Title: Re: Several questions about 3d-animations & StickToRegion method
Post by: Mnemonic on February 15, 2008, 08:23:27 AM
1. The actor sticks to region before that it has come to the object. How to fix this?
I don't think so...

2. How to drop the effect of StickToRegion method?
actor.StickToRegion(null);
Title: Re: Several questions about 3d-animations & StickToRegion method
Post by: Dionysius on February 15, 2008, 08:57:23 AM
I don't think so...
Maybe... But could you look at my demo.exe? http://z-nsk.ru/demo.zip
Click on the luggage and keep a sharp eye on the actor's feet.
actor.StickToRegion(null);
Thanks!
Title: Re: Several questions about 3d-animations & StickToRegion method
Post by: Dionysius on February 15, 2008, 09:15:26 AM
Well, I solved this problem by triggering event from "open_lug" animation  :)