Massassi Forums Logo

This is the static archive of the Massassi Forums. The forums are closed indefinitely. Thanks for all the memories!

You can also download Super Old Archived Message Boards from when Massassi first started.

"View" counts are as of the day the forums were archived, and will no longer increase.

ForumsCog Forum → My darn cut cog, still dosent work please please help....
My darn cut cog, still dosent work please please help....
2003-03-12, 2:26 AM #1
so try it and try it it still wont work! either fix this cog or make one for me so i can work out how to do it. Please my hole "ALTERNATIOR" project rests on this cog please help!
Code:
#Cutscen Level master COG
#Generated by PJB (pokejoyboy@aol.com, pjb@pjb.i8.com) 
#credit to Antony Espindola for making the tutor that 
#helped me make this cog.

symbols   
message   startup	
thing	Cameraone	
thing      player        
thing      kyle
thing	bombghost	   	    
template   gunless	 
float	speed		
sound	shot		
keyframe    crouch   
end

code

startup:

 // setup first
 player = GetLocalPlayerThing();
    // switch the player for an Actor
    SetActorFlags(player, 0xa00000);
    StopThing(player);
    Kyle = CreateThing(gunless, player);
    StopThing(Kyle);
    SetThingCurGeoMode(player, 0);
	  // switch to camera view one
	  SetCameraFocus(0, Cameraone);
	    print("uhhh.....");
	    sleep(PlayKey(Kyle, crouch, 1, 0x4));
	    MoveToFrame(Cameraone, 1, speed);
	    AISetMoveSpeed(Kyle, 1.0);
	    print("Where am I? and for that matter Who am i?");
	    sleep(AISetLookPos(Kyle, GetThingPos(BombGhost)));
	    MoveToFrame(Cameraone, 2, speed);
	    AISetMoveThing(Kyle, BombGhost);
	    MoveToFrame(Cameraone, 3, speed);
	    print("I must have lost my memory, but why? and how did i do it here?");
	    PlaySoundLocal(shot,0.6, 0.0,0x4); 
	    print("What was that?")
return;
end


------------------
I am pjb.
Another post......
another moment of my life wasted.....
I am Darth PJB!
well, go on, run away!

i have a plastic lightsaber and a jedi cape.. am i a nerd?

If gravity is a crule mistress, and bar tenders with bad grammar are untrustworthy, what is air?
2003-03-12, 4:36 AM #2
OK...
1: In the symbols you have kyle with a little k. In the code you have Kyle with a big K. In COGs they mkae a difference between cases. Please make them identicle down to the last character.
2: Your sleep is a bit wrong. Try this one: sleep(GetKeyLen(key)); and try putting the PlayKey before the print. And replace the sleep(AISetLookPos(...)); to:
AISetLookPos(...);
sleep(2);

/Edward
Edward's Cognative Hazards
2003-03-13, 6:56 AM #3
AH, me and cog dont mix. there are explotions dont you know, like nitric asid and glyserine (nitoglyserine)

------------------
I am pjb.
Another post......
another moment of my life wasted.....
I am Darth PJB!
well, go on, run away!

i have a plastic lightsaber and a jedi cape.. am i a nerd?

If gravity is a crule mistress, and bar tenders with bad grammar are untrustworthy, what is air?

↑ Up to the top!