Jump to content

How to start a mission.


Recommended Posts

2pacproducer

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 by 2pacproducer
Link to comment
https://gtaforums.com/topic/306080-how-to-start-a-mission/
Share on other sites

2pacproducer

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

 

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

2pacproducer

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

spaceeinstein

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • 0 User Currently Viewing
    0 members, 0 Anonymous, 0 Guests

×
×
  • Create New...

Important Information

By using GTAForums.com, you agree to our Terms of Use and Privacy Policy.