24.05.2010, 09:58
Hey all,
I'm trying to make some missions where you have to steal a car and deliver it at the faction's hideout, problem is, I'm quite new to scripting, I figured how to set the checkpoint and stuff, but now I have two problems/questions:
1. When I was going to the car I had to steal, I went past the checkpoint where I had to deliver it, so I figured I missed a checkpoint in the script. When I went through it, it said that I succesfully stole the car, while I wasnt even in it. How can I make the script check if I'm in the right car?
2. Is it possible to make the script choose a random mission, because I'm making a series of car stealing missions, about 30 missions I think, and I want to make it so that if you say /stealcar, you'll get a random mission of one of those 30 or so missions.
Thanks in advance,
Wicky.
I'm trying to make some missions where you have to steal a car and deliver it at the faction's hideout, problem is, I'm quite new to scripting, I figured how to set the checkpoint and stuff, but now I have two problems/questions:
1. When I was going to the car I had to steal, I went past the checkpoint where I had to deliver it, so I figured I missed a checkpoint in the script. When I went through it, it said that I succesfully stole the car, while I wasnt even in it. How can I make the script check if I'm in the right car?
2. Is it possible to make the script choose a random mission, because I'm making a series of car stealing missions, about 30 missions I think, and I want to make it so that if you say /stealcar, you'll get a random mission of one of those 30 or so missions.
Thanks in advance,
Wicky.