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 → AI commands
AI commands
2000-11-13, 1:39 PM #1
My cog won't let me have it attack another thing in Multi. Here is the part i need to know is right.

boba = FirstThingInView(keith, 360, 8.0, 0x4);
AISetLookPos(keith, GetThingPos(boba));
AISetFireTarget(keith, boba);
AISetMode(keith, 0x202);
AIClearMode(keith, 0x4);


also this part dosn't seem to work

channel = PlaySoundThing(pro2, keith, 0.0, 1.0, 8.0, 0x81);
ChangeSoundVol(channel, 0.8, 0.7);
Sleep(40);
StopSound(channel, 0.1);

------------------
Keith: "Perhaps there was an age in which people had Knowledge of Magic..."

[This message has been edited by Keith8_8000 (edited November 13, 2000).]
Keith: "Perhaps there was an age in which people had Knowledge of Magic..."
JK cogs
2000-11-14, 1:22 AM #2
I would use SetTimerEx() instead of sleep in there.. sleep can be very dangerous, especially in cogs that can be re-entered. Not too sure about the AI - really haven't worked with anything like that. *Another thing to do :P *

-Jipe

↑ Up to the top!