yair1221 Posted August 5, 2010 Share Posted August 5, 2010 what reasons could there be for a car not to show up? its not like a parked car, its a car.create(...) sometimes it shows up,sometimes it doesnt,here is the script: {$CLEO}thread 'Car'model.load(#BOBCAT):checkwait 0ifmodel.available(#BOBCAT)jf @check:1car.create(BOBCAT, X.X, Y.Y, Z.Z)end_thread what is so wrong about this? the coords arent wrong,because sometimes it does show up thats the whole script, it is supposed to run once Link to comment Share on other sites More sharing options...
james227uk Posted August 5, 2010 Share Posted August 5, 2010 The car is probably falling beneath the map because it's spawning in an unloaded area. Check if this player is in the area first, then place the car Link to comment Share on other sites More sharing options...
yair1221 Posted August 5, 2010 Author Share Posted August 5, 2010 oh you mean,the area isnt loaded fast enough? because the player is nearby, a few hangars to the left, its in the air and all that, how am i supposed to prevent this? add a wait condition? and by the way: what does the car immunities means? there is immunities from missiles,melee and stuff,but all it writes is P1 P2 P3 P4 P5 P6 Link to comment Share on other sites More sharing options...
Deji Posted August 5, 2010 Share Posted August 5, 2010 end_thread Don't use it for CLEO Scripts... Use 0A93. And try reading the Sanny Builder help file (CLEO 3 Code Library) for the important information on how to properly use CLEO Scripts. Link to comment Share on other sites More sharing options...
coin-god Posted August 5, 2010 Share Posted August 5, 2010 Parameter 1,2,3,4,5,6- You can perfomr a quick search in the forums and you will find wich number represents what. Link to comment Share on other sites More sharing options...
yair1221 Posted August 5, 2010 Author Share Posted August 5, 2010 with all due respect to your little CLEO rules,but nothing have changed since i added 0A93: the normal end_thread has worked fine so far so why to change it? and for the P1 P2 P3 P4 P5 P6: which codewords to search for? Link to comment Share on other sites More sharing options...
ZAZ Posted August 6, 2010 Share Posted August 6, 2010 the normal end_thread has worked fine so far so why to change it? and for the P1 P2 P3 P4 P5 P6: which codewords to search for? Sometimes a failure don't cause a crash, just nothing happens and can also cause that other scripts won't work properly. end_thread is the keyword for 004E: end_thread and is only allowed in main.scm and cleo mission scripts: *.cm files In *.cs files and *.s file we have to use 0A93: end_custom_thread Otherwise it can cause crashes, bugs, etc... BP 0 FP 0 EP 1 CP 1 MP 0 bullet proof, fire proof, explosion proof, crash proof, melee proof CLEO MODS CLEO Script Tutorial Link to comment Share on other sites More sharing options...
yair1221 Posted August 6, 2010 Author Share Posted August 6, 2010 CLEO never crashed with end_thread for me,and its easier to write because you dont have to write the opcode Link to comment Share on other sites More sharing options...
james227uk Posted August 6, 2010 Share Posted August 6, 2010 Right yes, because writing 0A93: is as hard and time consuming as writing a 1000 word novel, right? [/sarcasm] All you have to do is type 0A93. You DO NOT need to write the end_custom_thread part. That is removed by the compiler after compiling anyway Link to comment Share on other sites More sharing options...
yair1221 Posted August 6, 2010 Author Share Posted August 6, 2010 still, having a little hard times using opcodes instead of words,im better in english than in coding Link to comment Share on other sites More sharing options...
Deji Posted August 6, 2010 Share Posted August 6, 2010 Just type "end_ct" and hit Ctrl+F1... If it comes up with "end_custom_thread" instead, hit Ctrl+Z and then Ctrl+F1 again... There are only two possible things it could give and last time I checked "end_ct" is actually shorter than "end_thread". Although I guess due to the underrated qwerty layout, typing "read" is fast and you can do it with one hand... Still, I bet half of internet users wish you could do that with the letters O N R and P... Link to comment Share on other sites More sharing options...
yair1221 Posted August 6, 2010 Author Share Posted August 6, 2010 it does nothing,typing end_ct and then pressing Ctrl+F1 i tried doing that with the marked, and i tried otherwise,nothing Link to comment Share on other sites More sharing options...
Deji Posted August 6, 2010 Share Posted August 6, 2010 In that case, you probably need to update your opcodes.txt file here.. Link to comment Share on other sites More sharing options...
BnB Posted August 6, 2010 Share Posted August 6, 2010 (edited) You have to type end_cu put the cursor after u and press Ctrl + f1 Edited August 6, 2010 by BnB Link to comment Share on other sites More sharing options...
yair1221 Posted August 6, 2010 Author Share Posted August 6, 2010 thats what i did nothing happend Link to comment Share on other sites More sharing options...
coin-god Posted August 6, 2010 Share Posted August 6, 2010 God.. just write end_custom_thread. For god sake don't be that lazy. If you dont want to use it, dont use it. But fix the possible problems yourself. Link to comment Share on other sites More sharing options...
yair1221 Posted August 6, 2010 Author Share Posted August 6, 2010 haven't had a problem so far if there will be,i promise ill try 0A93: satisfied? 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