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.
Ta again.
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.
# 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![http://forums.massassi.net/html/tongue.gif [http://forums.massassi.net/html/tongue.gif]](http://forums.massassi.net/html/tongue.gif)
![http://forums.massassi.net/html/smile.gif [http://forums.massassi.net/html/smile.gif]](http://forums.massassi.net/html/smile.gif)