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.
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.
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.