Jump to content
Sign in to follow this  
TheHypnoo

Problem script.

Recommended Posts

Hi, I'm creating a script about vehicle testing. Currently I do not know what mistakes there are, if someone could help me. The idea is to take a position, create the marker, and if you leave that marker then the vehicle is eliminated ... and you leave that position. The idea is that only he can see it. 

Quote

--NOT COPY--

 

Share this post


Link to post
Share on other sites

hello !

 

do you have an error message ?

 

  • Haha 1

Share this post


Link to post
Share on other sites
hideObjectGlobal true;

that is not going to work. Check the syntax: https://community.bistudio.com/wiki/hideObjectGlobal

 

 

Instead of this:

if (position player != _marker) then {

you could use something like the following:

// create your vehicle locally and whatever else you do there...

waitUntil { sleep 1; !(player inArea _marker) };

// remove the vehicle again.

 

Share this post


Link to post
Share on other sites

Ok thank you, everything you have told me I have solved. Now I wanted to know how to save a temporary position within the script. I mean I keep the player's position and then when the script ends I take it to the position where the script started. 

Thanks in advance!

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×