sirusxxxx Posted August 22, 2009 Share Posted August 22, 2009 00FF: actor $PLAYER_ACTOR sphere 0 in_sphere 706.0528 -469.4740 16.33594 radius 200.0 200.0 200.0 This code spawns an object when the person is on foot, is their a way to spawn the same object for both on foot or in vehicle? Link to comment Share on other sites More sharing options...
TheSiggi Posted August 22, 2009 Share Posted August 22, 2009 036A: put_actor [email protected] in_car [email protected] 0430: put_actor [email protected] into_car $TEMPVAR_ACTOR_CAR passenger_seat 0 072A: put_actor $ACTOR_SWEET into_car $SWEET_CAR driverseat driver nad that one makes the actor enter the car as a passenger anywhere 072B: put_actor $ACTOR_OG_LOC into_car [email protected] passengerseat -1 Link to comment Share on other sites More sharing options...
ZAZ Posted August 22, 2009 Share Posted August 22, 2009 00FF: actor $PLAYER_ACTOR sphere 0 in_sphere 706.0528 -469.4740 16.33594 radius 200.0 200.0 200.0 This code spawns an object when the person is on foot, is their a way to spawn the same object for both on foot or in vehicle? this code don't spawn an object this code checks if an actor is near the defined location on foot there are several opcodes for a near_location check 00EC: actor $PLAYER_ACTOR 0 near_point 1812.369 -1929.922 radius 80.0 80.0 00ED: actor $PLAYER_ACTOR 0 near_point 2043.68 -1635.73 radius 4.0 4.0 on_foot 00EE: actor $PLAYER_ACTOR 0 near_point 2067.4 -1831.2 radius 15.0 15.0 in_car 00EF: actor [email protected] 0 near_point 2196.239 -1191.459 radius 2.0 2.0 stopped 00F0: actor [email protected] 0 near_point 2175.29 -2259.22 radius 3.0 3.0 stopped_on_foot 00F2: actor [email protected] near_actor $PLAYER_ACTOR radius 20.0 20.0 0 00F3: actor $PLAYER_ACTOR near_actor [email protected] radius 2.0 2.0 0 on_foot 00F4: actor [email protected] near_actor $PLAYER_ACTOR radius 6.0 6.0 0 in_car 00FE: actor $PLAYER_ACTOR sphere 0 in_sphere 658.0068 -1866.313 4.4537 radius 15.0 15.0 15.0 00FF: actor $PLAYER_ACTOR sphere 0 in_sphere $X_Johnson_house $Y_Johnson_house $Z_Johnson_house radius 1.0 1.0 2.0 on_foot 0100: actor $PLAYER_ACTOR in_sphere 1793.068 -1904.254 12.3989 radius 4.0 4.0 4.0 sphere 1 in_car 0101: actor $PLAYER_ACTOR in_sphere [email protected] [email protected] [email protected] radius 5.0 5.0 3.0 sphere 0 stopped 0102: actor $PLAYER_ACTOR in_sphere 2468.8 -1278.2 29.1 radius 1.2 1.2 3.0 sphere 1 stopped_on_foot 0103: actor $PLAYER_ACTOR in_sphere -1577.942 52.6333 16.3281 radius 4.0 4.0 6.0 sphere 0 stopped_in_car 0104: actor $PLAYER_ACTOR near_actor [email protected] radius 15.0 15.0 15.0 sphere 0 0105: actor $PLAYER_ACTOR near_actor [email protected]([email protected],9i) radius 5.0 5.0 2.0 sphere 0 on_foot 0106: actor $PLAYER_ACTOR near_actor [email protected] radius 15.0 15.0 15.0 0 in_car CLEO MODS CLEO Script Tutorial Link to comment Share on other sites More sharing options...
TheSiggi Posted August 22, 2009 Share Posted August 22, 2009 @ ZAZ: I guess he knows and uses that code as a term 'which spawns' (if true) the objects..... Link to comment Share on other sites More sharing options...
noalcohol Posted August 22, 2009 Share Posted August 22, 2009 What a coincidence! I been searching for someone who has spawning objects tutorial, but there are nothing. Well, I also would like to ask. Can you please give the steps of spawning objects? And also how to rotate it, Thank you! Link to comment Share on other sites More sharing options...
ZAZ Posted August 22, 2009 Share Posted August 22, 2009 @ ZAZ: I guess he knows and uses that code as a term 'which spawns' (if true) the objects..... How should I know what he know? I can only comment what he posted. And if he used 00FF: to spawn an object and want to be able to spawn in every case he will find the right code in my posted exemples. CLEO MODS CLEO Script Tutorial Link to comment Share on other sites More sharing options...
TheSiggi Posted August 22, 2009 Share Posted August 22, 2009 @ ZAZ: Well thats true @ topic: use opcode search tool 00A5: [email protected] = create_car #PONY at 0.0 0.0 0.0 and thats a code which spawns a wooden cabin ( extraction of my save-cabin mod) its very easy 0247: load_model 18267 0249: release_model 18267 038B: load_requested_models 0107: [email protected] = create_object 18267 at -1623.119 -1902.598 88.0346 Link to comment Share on other sites More sharing options...
sirusxxxx Posted August 22, 2009 Author Share Posted August 22, 2009 I ment I am using the invisible check to trigger the spawn object, not to create the spawn object its self. This is so you dont have to walk into a fixed sphere to trigger the spawn object, instead if you are in the radius on a foot or in a car it will appear automaticlly. ZAZ Thanks those are the codes I was looking for I wanted a on foot or in car invisible check to trigger the spawn object, instead of just the on foot trigger. 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