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 → Need Cog
Need Cog
2004-09-02, 11:03 AM #1
So, the cog should do this:

You cannot save, but when the player go's to ghost-thing the game will quick saved....

Can someone please make me that cog...

------------------
SpriteMod (JO 2003) Roger Wilco Skin
SpriteMod (JO 2003) Roger Wilco Skin

Snail racing: (500 posts per line) ---@%
2004-09-02, 1:20 PM #2
Well, it's impossible to prevent the player from saving, but the rest is doable.

Code:
# Jedi Knight Cog Script
#
# checkpoint.COG
#
# Saves game when player comes within range of ghost
# 
# [Darth Slaw]
# 
# This Cog is Not supported by LucasArts Entertainment Co

symbols

message		startup
message		pulse

thing		ghost
thing		player		local

flex		range=0.2

int		saved=0		local

end

# ========================================================================================

code
startup:
	Sleep(1);
	SetPulse(0.1);

stop;
# ........................................................................................
pulse:
	player = GetLocalPlayerThing();
	if(VectorDist(GetThingPos(player), GetThingPos(player)) <= range && !saved)
	{
		saved = 1;
		AutoSaveGame();
	}

stop;
end


------------------
nytfyre m0d || f33l t3h p0w3r || t3h l0st c0gz || OMF > *
May the mass times acceleration be with you.
2004-09-02, 7:19 PM #3
Ok thx...

------------------
SpriteMod (JO 2003) Roger Wilco Skin
SpriteMod (JO 2003) Roger Wilco Skin

Snail racing: (500 posts per line) ---@%

↑ Up to the top!