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 → 3do & surface
3do & surface
2003-08-24, 7:49 PM #1
i have a 3do that i need to go to a certain frame when a surface or thing is activated, and i want it to stay there until the surface or thing is activated again which will bring it back to its first frame. i couldn't find a cog for this one, so could someone link me one or make me one or email me one?
yoclanleader@hotmail.com


note: this post is also in the main editing forum, but i didn't know which was best to post in so plz dont delete.

------------------
Your Owners Clan Leaader,
_yo_wasup_
-=__/¯¯l¤¥Ø¤l¯¯\__\/\/ª≤uÞ_=-
http://www.TeamYo.org
2003-08-25, 1:28 PM #2
here's one you can use if you want.
Code:
#===========================
# Written By DSLS_DeathSythe
#===========================
symbols
#---------------------------
message     activated
thing       console=-1     linkid=1
surface     switch=-1      linkid=1
thing       move_thng=-1   linkid=2
flex        move_spd=2.0
int         target_frame=1
#---------------------------
end
#===========================
code
#---------------------------
activated:
	if(GetSenderID() != 1)
		return;
	if(GetCurFrame(move_thng) == 0)
		{
		if(switch > -1)
			SetWallCel(switch, 1);
		MoveToFrame(move_thng, target_frame, move_spd);
		return;
		}
	if(switch > -1)
		SetWallCel(switch, 0);
	MoveToFrame(move_thng, 0, move_spd);
return;
#===========================
end

it should work, i didnt test it though.

------------------
Famous last words - "It seemed like a good idea at the time."

[This message has been edited by DSLS_DeathSythe (edited August 25, 2003).]
Famous last words - "It seemed like a good idea at the time."

↑ Up to the top!