mor115 Posted December 18, 2006 Share Posted December 18, 2006 help i have tried to make a BRIEFCASE PICKUP i would make a briefcase when tommy walks in another briefcase comes on the map i have tried but i have make something wrong all my briefcases are on the map on sametime that the problom please i need help seee yaaa Merry Chrismas Link to comment Share on other sites More sharing options...
ms.cooldude Posted December 18, 2006 Share Posted December 18, 2006 (edited) If you are trying to say this: When tommy walks into a briefcase, you want it to disapear and then create another briefcase somewhere else and you would also like to have a marker on the map for each one. Then I can help you. This code not only creates a marker on the map, but also creates an arrow above the pickup that is created: :Firstpickup0213: $BRIEFCASE_1 = create_pickup -120 (BRIEFCASE) type 3 at X Y Z03DC: $BRIEFCASE_MARKER_1 = create_marker_above_pickup $BRIEFCASE_1 When it is picked up as you would like to say, add this code: :Pickedup00D6: if 08214: NOT pickup $BRIEFCASE_1 picked_up004D: jump_if_false £Aftercollection0001: wait 0 ms0002: jump £Pickedup This code means in english that if the briefcase is picked up, the script will automaticly jump the listed code as shown below taken from the script above 004D: jump_if_false £Aftercollection That then leeds you to the next step, in otherwords you now need to write in what will happen when it is picked up so this is how it should be: Step 1: :Aftercollection0164: disable_marker $BRIEFCASE_MARKER_1 First you need to disable the current marker Step 2: 0213: $BRIEFCASE_2 = create_pickup -120 (BRIEFCASE) type 3 at X Y Z03DC: $BRIEFCASE_MARKER_2 = create_marker_above_pickup $BRIEFCASE_2 Then you can create your second pickup somewhere else, just replace X Y Z with your coords. You can do this with as many pickups you want and this does not only apply to this pickup however it applys to all pickups including weapons, bribes, health and so-on. All together, you should be left with the following code: :Firstpickup0213: $BRIEFCASE_1 = create_pickup -120 (BRIEFCASE) type 3 at X Y Z03DC: $BRIEFCASE_MARKER_1 = create_marker_above_pickup $BRIEFCASE_1:Pickedup00D6: if 08214: NOT pickup $BRIEFCASE_1 picked_up004D: jump_if_false £Aftercollection0001: wait 0 ms0002: jump £Pickedup:Aftercollection0164: disable_marker $BRIEFCASE_MARKER_10213: $BRIEFCASE_2 = create_pickup -120 (BRIEFCASE) type 3 at X Y Z03DC: $BRIEFCASE_MARKER_2 = create_marker_above_pickup $BRIEFCASE_2:Pickedup_200D6: if 08214: NOT pickup $BRIEFCASE_1 picked_up004D: jump_if_false £Aftercollection_20001: wait 0 ms0002: jump £Pickedup_2 At £Aftercollection_2 you can just copy £Aftercollection and change the codes to continue with more briefcases. Hope that helped Edited December 18, 2006 by ms.cooldude Link to comment Share on other sites More sharing options...
Y_Less Posted December 18, 2006 Share Posted December 18, 2006 You have made a whole load of topics, some of them multiple times. How much have you actually done yourself? There are pinned topics with tutorials and plenty of examples of code (especially in the original SCM). Please read up some more and take things at a pace you can manage, we're here to help when you get stuck after trying everything else, not to do it for you before you've even tried yourself. 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