Re: MotS cutscenes


[ Follow Ups ] [ Post Followup ] [ The Massassi Temple Message Board ]

Posted by Fourwood on July 19, 1998 at 18:11:43:

In Reply to: Re: MotS cutscenes posted by Antony Espindola on July 19, 1998 at 13:41:02:

: Are you using the Player or a totally new Actor?
: If you use the Player, it won't work.
: If you are using a new Actor, make sure you use
: the AISetMoveSpeed command otherwise it won't move.

: Try adding lots of Print statements (such as Print "now about to set the move speed...")
: so you can (sort of) debug your COG.

: Other than that, post you COG and we'll take a look

Ok. I'm using KyleBryarActor. All this is doing is running right through my cutscene. Here's the cog:


symbols
message startup
thing player local
thing actor local
thing camera
thing moveto
keyframe run=kyrun0.key local
template kyle=KyleBryarActor local
int keynum local

end

code

startup:
player = GetLocalPlayerThing();
jkBeginCutscene();
SetActorFlags(player, 0xa00000);
StopThing(player);
SetThingGeoMode(player, 0);
actor = CreateThing(gunless, player);
StopThing(actor);
SetCameraFocus(0, camera);
Sleep(0.5);
keynum=PlayKey(actor, run, 1, 0x4);
AISetMoveSpeed(actor, 2.0);
AISetLookPos(actor, GetThingPos(moveto);
AISetMoveThing(actor, moveto);
Sleep(3.0);
StopKey(actor, keynum, 0);
Sleep(0.5);
jkEndCutscene();
ClearActorFlags(player, 0xa00000);
SetThingGeoMode(player, 4);
DestroyThing(actor);
SetCameraFocus(0, player);

end


Hopefully you can help out with this.


Follow Ups:



Post a Followup

Name:
E-Mail:

Subject:

Comments:

Optional Link URL:
Link Title:
Optional Image URL:


[ Follow Ups ] [ Post Followup ] [ The Massassi Temple Message Board ]