ititit Posted August 20, 2008 Share Posted August 20, 2008 we need to solve the problem my idea was :modcheckloopif player wants to be godthengosub godmodeendif player wants is car indestructablethengosub godcarendwait 0jump @modcheckloop:godmodeset actor everrithing proofeccreturn:godcarset car ever proofeccreturn but there is one big fu**ing problem we cant set more than one loop runnung in the same time in cleo mods anyone have a good idea? Link to comment Share on other sites More sharing options...
2pacproducer2 Posted August 20, 2008 Share Posted August 20, 2008 I had the same problem too And the answer is , you cant make more than one thread in a file Link to comment Share on other sites More sharing options...
ititit Posted August 20, 2008 Author Share Posted August 20, 2008 we should ask seamann to find a way to use more than one thread we can define the threads with another opcode tha let cleo run the thread but please seamann find a way!! Link to comment Share on other sites More sharing options...
spaceeinstein Posted August 20, 2008 Share Posted August 20, 2008 (edited) :god wait 0 if defined jf @god make me god :godcar if driving jf @god [email protected] = my car make car god jump @god Here, simple. The god mode code has a topic somehwere in the Mission Mod section. If you want to insert more loop codes, like :fly wait 0 if defined jf @fly if key press jf @fly make me fly jump @ fly You can just copy the stuff that has no similarities to the main loop :fly if key press jf @fly make me fly and insert it (make some necessary change too) :god wait 0 if defined jf @god make me god :godcar if driving jf @fly [email protected] = my car make car god :fly if key press jf @god make me fly jump @god Works well with short loops that doesn't wait too long. This is a simple fix for simple problems. If there are loops that can't loop like that, then I have no solution for that but most codes people make here are simple ones anyway. More example :homie wait if defined jf @homie if me at some point jf @homie load model :homie2 wait 0 if model loaded jf @homie2 create some dude jump @homie Take :homie if me at some point jf @homie load model :homie2 wait 0 if model loaded jf @homie2 create some dude And insert (with changes) :god wait 0 if defined jf @god make me god :godcar if driving jf @fly [email protected] = my car make car god :fly if key press jf @homie make me fly :homie if me at some point jf @god load model :homie2 wait 0 if model loaded jf @homie2 create some dude jump @god Etc. Edited August 20, 2008 by spaceeinstein Link to comment Share on other sites More sharing options...
ititit Posted August 20, 2008 Author Share Posted August 20, 2008 (edited) thanks spaceeinstein Edited August 31, 2008 by ititit Link to comment Share on other sites More sharing options...
2pacproducer2 Posted August 21, 2008 Share Posted August 21, 2008 I think its too long Link to comment Share on other sites More sharing options...
ititit Posted August 21, 2008 Author Share Posted August 21, 2008 what do you suggest to short it? Link to comment Share on other sites More sharing options...
james227uk Posted August 21, 2008 Share Posted August 21, 2008 I think its too long It don't think it matters how long it is Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now