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 → Please sir, can I have more?
Please sir, can I have more?
2001-12-09, 9:33 AM #1
Yet another cog question, is there code/a cog that makes it so that AI is disabled until a player enters a certain sector?

Ta again.
2001-12-09, 10:01 AM #2
Code:
# Jedi Knight Cog Script
#
# Freeze.COG
#
# [Cave_Demon, 12/9/2001]
# 
#
# This Cog is Not supported by LucasArts Entertainment Co

symbols
int	ai_i	local
sector		enter
message startup
message entered
message touched
end

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

code
startup:
for (ai_i = 0; ai_i < GetThingCount(); ai_i = ai_i + 1) {
AISetMode(ai_i, 0x2000);
}
return;

entered:
touched:
for (ai_i = 0; ai_i < GetThingCount(); ai_i = ai_i + 1) {
AIClearMode(ai_i, 0x2000);
AISetMode(ai_i, 0x4);
}
return;
# ........................................................................................

end

I tested it, remember me when you release it [http://forums.massassi.net/html/tongue.gif]

------------------
Punainen tiili kädes, sinä vapauteesi juokse.
Välil maan ja taivaan raha menee rahan luokse.
Alas kapitalismin kahleet, näin unessani enteen.
Elä aatteidesi puolesta, vedä vielä kerran henkee.

Punainen Tiili kädes, huomenna kaikki muuttuu.
Raha enää vain muisto, rakkaus enää vain puuttuu.
Alas kapitalismin kahleet, näin unessani enteen.
Elä aatteidesi puolesta, vedä vielä kerran henkee.
WHAT?
2001-12-09, 10:46 AM #3
Ahaha demon, always looking for credit.
Ta much, and of course youll be credited [http://forums.massassi.net/html/smile.gif]

↑ Up to the top!