bluezeen Posted August 14, 2011 Share Posted August 14, 2011 I made a script for spawning Infernus on the Las Venturas Airport. See Pic Spawn Location which I want I used the following Script: {$CLEO .cs}03A4: name_thread ‘CARS’:CARS_1Wait 250 msIfPlayer.defined ($PLAYER_CHAR)Jf @CARS_1Model.load (#INFERNUS):CARS_2Wait 0 msIf andmodel. Available (#INFERNUS)jf @CARS_2:CARS_3if00FE: actor $PLAYER_ACTOR sphere 0 in_sphere 2463.601 -1659.09 13.3047 radius 100.0 100.0 100.0jf @CARS_300A5: [email protected] = create_car #Infernus at $1413.9189 $1294.0659 $10.31080175: set_car [email protected] 1.8497:CARS_4if80FE: not actor $PLAYER_ACTOR sphere 0 in_sphere 2463.601 -1659.09 13.3047 radius 100.0 100.0 100.0jf @CARS_4ifcar.wrecked ([email protected])jf @CARS_401C3: remove_references_to_car [email protected] // Like turning a car into any random carjump @CARS_1 // Loop back the code But it does not spawn at the place where it is in image. Only a few times it spawn at the airport but not at this place. Please someone can edit and tell me my mistake. It's my first script. Link to comment Share on other sites More sharing options...
fireguy109 Posted August 14, 2011 Share Posted August 14, 2011 (edited) 00A5: [email protected] = create_car #Infernus at $1413.9189 $1294.0659 $10.3108 Get rid of the dollar signs. Those are coords, not variables. There are also several small mistakes. You need more waits and some different if statements. {$CLEO .cs}03A4: name_thread 'CARS':CARS_1Wait 250 msIfPlayer.defined ($PLAYER_CHAR)Jf @CARS_1Model.load (#INFERNUS):CARS_2Wait 0 msIfmodel. Available (#INFERNUS)jf @CARS_2:CARS_3wait 0 msif00FE: actor $PLAYER_ACTOR sphere 0 in_sphere 2463.601 -1659.09 13.3047 radius 100.0 100.0 100.0jf @CARS_300A5: [email protected] = create_car #Infernus at 1413.9189 1294.0659 10.31080175: set_car [email protected] Z_angle_to 1.8497:CARS_4wait 0 msif80FE: not actor $PLAYER_ACTOR sphere 0 in_sphere 2463.601 -1659.09 13.3047 radius 100.0 100.0 100.0jf @CARS_4ifcar.wrecked ([email protected])jf @CARS_401C3: remove_references_to_car [email protected] // Like turning a car into any random carjump @CARS_1 // Loop back the code Fixed, thanks Zaz. Edited August 14, 2011 by fireguy109 Link to comment Share on other sites More sharing options...
ZAZ Posted August 14, 2011 Share Posted August 14, 2011 wrong sign in name_thread string must be single quotation marks 03A4: name_thread 'CARS' CLEO MODS CLEO Script Tutorial 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