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 → Making AI Move Faster cog...
Making AI Move Faster cog...
2004-02-06, 6:41 PM #1
I got this cog from someone to make my AI move faster, but it don't work.. any ideas?

Code:
# 
# 
# cog to increase actor speed 
# 
# 2004 LordVirus (Tristan + Erin) 
symbols 

thing   actor 

message   startup 
message   timer 

end 

code: 

startup: 
SetTimer(1.0);
Return; 
Timer: 

SetActorExtraSpeed(actor, 5.0); 

Return; 

end 


[Use code tags, please]

------------------
| | | | | | | | | | | | | | | |

[This message has been edited by GBK (edited February 07, 2004).]
||||||||||||||||||||
2004-02-07, 1:30 AM #2
try AISetMoveSpeed(actor, flex_speed);

------------------
The miners of Kiith Somtaaw sacificed much, and risked all. For their efforts they were brought into the inner most circle of Hiigaren power. Naabal, S'jet, and Sobanii bowed before them. And from that day to this, Somtaaw's children have been known to one and all as Beastslayers..
2004-02-07, 6:04 AM #3
Have you tried upping the value? 50? 100?

------------------
The future is here, and all bets are off.
And when the moment is right, I'm gonna fly a kite.
2004-02-11, 9:40 AM #4
GBK, would the cog work otherwise?

------------------
| | | | | | | | | | | | | | | |
||||||||||||||||||||
2004-02-11, 10:17 AM #5
Quote:
<font face="Verdana, Arial" size="2">Originally posted by Spiral:
GBK, would the cog work otherwise?</font>


I dont know. I can really test it right now, either. [http://forums.massassi.net/html/frown.gif]

------------------
The future is here, and all bets are off.
And when the moment is right, I'm gonna fly a kite.
2004-02-13, 9:46 AM #6
In the sp levels a jedis descovery 2 and a jedis discovery 3 it had fast ai. Maybe try that as a refferance.

------------------
Nightfire Mod
Spoting an error in post will result in a $100 reward.
Offer expires on 6/6/06. Valid one per customer, per day.

Rangi
2004-02-14, 11:00 AM #7
umm... its been a while since i've cogged, but i dont believe there is supposed to be a colon after the word code.

------------------
"The quality of the levels you make is determined by the skill of the person not by the editor in which they use!"
-Michael Kyle

The Arcane Sith
2004-02-14, 5:20 PM #8
No.
2004-02-14, 6:10 PM #9
well in that code, there is a colon after code

------------------
"The quality of the levels you make is determined by the skill of the person not by the editor in which they use!"
-Michael Kyle

The Arcane Sith
2004-02-14, 6:45 PM #10
Good observation. That could be it, actually. Won't know untill he tests it though.
2004-02-15, 1:19 AM #11
That likely IS it. Remove the colon.

------------------
The future is here, and all bets are off.
And when the moment is right, I'm gonna fly a kite.
2004-02-15, 12:38 PM #12
I never thought about causing a syntax error by screwing up the symbols/code/end tags, but if that's the case then that's the reason - his whole cog is broke because of it. Yet again, good call. GOOD call.
2004-02-17, 4:53 AM #13
wow... i was right for once [http://forums.massassi.net/html/smile.gif]

------------------
"The quality of the levels you make is determined by the skill of the person not by the editor in which they use!"
-Michael Kyle

The Arcane Sith
2004-02-17, 11:00 AM #14
I just tried all those, but none of them work..

------------------
| | | | | | | | | | | | | | | |
||||||||||||||||||||
2004-02-17, 11:01 AM #15
Is there a way that I can turn an option on, on the AI to make the "always run" rather than walk all the time?

------------------
| | | | | | | | | | | | | | | |
||||||||||||||||||||

↑ Up to the top!