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 → Strange Problems With 3do "Animating"
Strange Problems With 3do "Animating"
2001-10-01, 1:44 PM #1
I'm having a strange problem animating my 3do flag for my JK Arena level. I'm just switching models after ever 1/4 of a second. Sounds simple, right? Well it won't work for me.

Code:
# Jedi Knight COG Script
#
# Script.COG
#
# Created by Emon. E-Mail: ejm_emon@hotmail.com - Zone: EJM_Emon - ICQ: 35960628
# Feel free to use this COG as long as credit is given in the readme file.
#
# Description
# 
#
# This COG is not supported by LucasArts Entertainment Co.

flags=0x240

symbols

thing        JedFlag                                                          
model        Flag1=jkarenaflag1.3do             local                         
model        Flag2=jkarenaflag2.3do             local                         
model        Flag3=jkarenaflag3.3do             local                         
model        Flag4=jkarenaflag4.3do             local                         
model        Flag5=jkarenaflag5.3do             local                         
model        Flag6=jkarenaflag6.3do             local                         

message      startup                                                          
message      pulse                                                            


end                                                                           


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

code

startup:
	
	SetPulse(.05);
	Return;

pulse:
	
	SetThingModel(JedFlag, Flag1);
	Sleep(.25);
	SetThingModel(JedFlag, Flag2);
	Sleep(.25);
	SetThingModel(JedFlag, Flag3);
	Sleep(.25);
	SetThingModel(JedFlag, Flag4);
	Sleep(.25);
	SetThingModel(JedFlag, Flag5);
	Sleep(.25);
	SetThingModel(JedFlag, Flag6);
	Sleep(.25);
	Return;

end


When I put SetThingModel(); in the startup, it can change the model. When in the pulse, it won't work. I also tried putting a print in the pulse, and it worked so I know it is being called. But why is it not changing models? Any help would be great!

Thanks.
Bassoon, n. A brazen instrument into which a fool blows out his brains.
2001-10-01, 1:53 PM #2
Those sleeps are screwing it up. It pulses every .05, but the entire pulse takes slightly over 1.5
Capitalization
Commas
Periods
Question Marks
Apostrophes
Confusable Words
Plague Words
2001-10-01, 3:56 PM #3
Indeed, you can change the pulse or just put

SetPulse(0); at the start

then SetPulse(0.05); at the end.

↑ Up to the top!