Jump to content
bauer24x

Teleport Script Question or Help.

Recommended Posts

I Didn't know where to put this thread or if this was right spot to do this. Move if needed! Thanks!!!

 

 

I need help. Was wondering if someone can help me with making a flag pole teleport me to another flag pole. Like to be able to teleport with flag pole to another base with flag pole. Is it possible. And if so

Can someone show me how to and the easiest way!!! Thanks

 

 

 

 

 

Share this post


Link to post
Share on other sites

pole1 addaction ["Teleport to pole 2", {_this select 1 setpos getpos pole2; /*maybe some fancy cutRsc stuff*/}];

pole2 addaction ["Teleport to pole 1", {_this select 1 setpos getpos pole1; /*maybe some fancy cutRsc stuff*/}];

Share this post


Link to post
Share on other sites

pole1 addaction ["Teleport to pole 2", {_this select 1 setpos getpos pole2; /*maybe some fancy cutRsc stuff*/}];

pole2 addaction ["Teleport to pole 1", {_this select 1 setpos getpos pole1; /*maybe some fancy cutRsc stuff*/}];

I Appericate the reply i kinda understand what you gave me. That goes into the poles inti correct? Will i have to make a Teleport.sqf as well with the same text? Or just the script in each pole?

Share this post


Link to post
Share on other sites

Also, if you are just messing around in the Editor, you can hold Left-Alt and Click with your mouse to teleport while in Map mode. Click anywhere and everywhere to move around.

Share this post


Link to post
Share on other sites

Make 2 poles via editor. Name them pole1 and pole2.

You can put the code anywhere you like. Init.sqf, objects unit etc.

Share this post


Link to post
Share on other sites

But if you put the code in an object's init delete /*...*/ , because comments like this throw errors there. It will be fine in an external script.

No need for a "teleport.sqf".

Share this post


Link to post
Share on other sites

But if you put the code in an object's init delete /*...*/ , because comments like this throw errors there. It will be fine in an external script.

No need for a "teleport.sqf".

Haha im soo sorry for sounding like a noob and retarded. i kno nothing about scripting. Is your script code exactly what needs to me in pole one and pole 2. Cause i put exactly what you gave me. The first part in pole one. Then put the 2nd part in pole 2. They both wont even go through without error. Here is a screenshot to see what im doing wrong. Can you possibly show me a screenshot of you doin it cause im so clueless?

 

Heres pole 1 with the text. 

OVlShju.jpg

 

Heres pole one with text and hitting okay which - the error

EXtxgJ5.jpg

Share this post


Link to post
Share on other sites

Delete the comment (the /* ... */ part) like the post above you said and you should be error free ;)

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

×