2pacproducer Posted January 5, 2008 Share Posted January 5, 2008 (edited) Hi! Its me again. I just want to make a mission and I m need some tips. I want to know how to put a red cylinder and when I walk on it the mission will start. I dont know where to put in main.scm mission 1. I know how tu put icons and markers but dont know how to start mission. Help me. EDIT: I found how to create Sphere and icon . Here it is: 02A7: $439 = create_icon_marker_and_sphere $ICON_CJ at 2476.023 -1684.257 13.4258 But I dont know how to activate it, and start mission when I walk on it. Edited January 5, 2008 by 2pacproducer Link to comment https://gtaforums.com/topic/306080-how-to-start-a-mission/ Share on other sites More sharing options...
SteaVor Posted January 5, 2008 Share Posted January 5, 2008 If I were you I would've searched original code for instances of 02A7 - after all (nearly) every mission in GTA is started that way, so you should find many examples for what you're trying to achieve. Link to comment https://gtaforums.com/topic/306080-how-to-start-a-mission/#findComment-1057382239 Share on other sites More sharing options...
2pacproducer Posted January 5, 2008 Author Share Posted January 5, 2008 Look , I m always trying to find it myself . I havent find it now so I asking help in this forum. And you are always saying me the same : 'Go look at original code' So If I were you I helped you but I m not you and I dont know much of coding. Link to comment https://gtaforums.com/topic/306080-how-to-start-a-mission/#findComment-1057382293 Share on other sites More sharing options...
ZAZ Posted January 5, 2008 Share Posted January 5, 2008 So If I were you I helped you but I m not you and I dont know much of coding. bla bla bla To write missions is a step to far for you, also it isnt necessary. Make experience by writing working threads. Learn how to make a red marker to activate something. Search through your original main for "near", check out these codes, especially the parameters Link to comment https://gtaforums.com/topic/306080-how-to-start-a-mission/#findComment-1057382434 Share on other sites More sharing options...
BEGINit Posted January 5, 2008 Share Posted January 5, 2008 Thats is exactly why I told him in some topic: start with a simple things. Link to comment https://gtaforums.com/topic/306080-how-to-start-a-mission/#findComment-1057382455 Share on other sites More sharing options...
2pacproducer Posted January 5, 2008 Author Share Posted January 5, 2008 Here it is . I found it: 0101: actor $PLAYER_ACTOR stopped_near_point 2476.023 -1684.257 13.4258 radius 5.0 5.0 3.0 sphere 0. <---- It means when I stop on it something need to start. But I dont know the code of start mission. Help I really cant find anymore. Link to comment https://gtaforums.com/topic/306080-how-to-start-a-mission/#findComment-1057382508 Share on other sites More sharing options...
spaceeinstein Posted January 5, 2008 Share Posted January 5, 2008 Most of us didn't start asking how to do these stuff. Most of us start doing it ourselves, especially if the game did it already. It seems like you want a straight and definite answer from someone else. :thread $sphere = create_icon_marker_without_sphere # at X Y Z :loop wait 0 if $player_char defined jf @loop if 1 $onmission == 0 $player_actor near_point X Y Z radius rX rY rZ in_sphere 1 jf @loop $onmission = 1 start_mission # jump @loop This is a template. Link to comment https://gtaforums.com/topic/306080-how-to-start-a-mission/#findComment-1057382561 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