Jump to content

Recommended Posts

Howdy, partners! So the question is simple: is it possible to make teleport script at the dedicated server, BUT only using an admin debug console (without interfearing into mission init files)???

 

I've been trying some thing like this: 

Quote

I've created 2 teleport points with

gate1 = "mercenaries_gorka" createVehicle(position player);

gate2=  "mercenaries_gorka" createVehicle(position player);

and then i've written

[gate1, ["Yeeehaaw", {player setPos getpos gate2}]] remoteExec ["addAction", 0, true];

 

but the thing is that it is only works for myself. Another players couldnt be able to use it anyhow. As far as i know the problem is with "player" variable. But i didn't get how to replace it (in that case) with anything else. 

 

Thank you for spending your time answering. 

Share this post


Link to post
Share on other sites

If you have the debug console available, you could just setPos yourself (or any other player, or any object with a variable name...etc.) wherever you want. 

  • Like 1

Share this post


Link to post
Share on other sites
19 minutes ago, Harzach said:

If you have the debug console available, you could just setPos yourself (or any other player, or any object with a variable name...etc.) wherever you want. 

 

But what if i want to create something like Zeus Teleporter (ares extension)? The only way to do such teleporter is to add something in mission files? No alternatives?

Share this post


Link to post
Share on other sites

Gate1 and Gate2 variables don't exist at other clients. Make them public:

gate1 = "mercenaries_gorka" createVehicle(position player);
publicVariable "gate1";
gate2 =  "mercenaries_gorka" createVehicle(position player);
publicVariable "gate2";

[gate1, ["Yeeehaaw", {player setPos getpos gate2}]] remoteExec ["addAction", 0, true];

 

  • Like 3

Share this post


Link to post
Share on other sites
5 hours ago, NeoArmageddon said:

Gate1 and Gate2 variables don't exist at other clients. Make them public:


gate1 = "mercenaries_gorka" createVehicle(position player);
publicVariable "gate1";
gate2 =  "mercenaries_gorka" createVehicle(position player);
publicVariable "gate2";

[gate1, ["Yeeehaaw", {player setPos getpos gate2}]] remoteExec ["addAction", 0, true];

 

Thank you! it works) Thx thx thx

  • Like 1

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

×