Jump to content
  • 0

natoed

Question

dataType="Marker";
			position[]={14939.934,0.053499073,15083.272};
			name="center";
			type="Empty";
			id=0;
		};
		class Item1
		{
			dataType="Marker";
			position[]={23600.639,3.1900001,18000.721};
			name="respawn_east";
			type="Empty";
			id=1;
		};
		class Item2
		{
			dataType="Marker";
			position[]={23600.611,3.1900001,18000.768};
			name="respawn_west";
			type="Empty";
			id=2;

I would like to know if a can run a script from position[]={23600.611,3.1900001,18000.768};  instead of the coordinates when selected by player.

Replacing the coordinates with a script from MP ie: position[]={"\epoch_config\Configs\addons\west_random_spawns"};

Had a random spawn script that work really well but a3 1.66 punched it in the knackers.

I'm asking cause me and my mission.sqm don't get along ....

cheers

natoed

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 1

The respawn marker is no trigger. It is just a marker with coordinates.

So you have to do it by a script or a trigger. But I think scripting is the better way, because triggers runs "oneachframe" as long as you are in the game (not sure)

There are different ways to do this.

I think the easiest way is to wait, until the Player is full spawned and then check, if he is in the Spawn-Box. If so, then run a script:

waituntil {!isNull player};
waituntil {time > 25};
waituntil {alive player};
waituntil {getPlayerUID player != ''};
waitUntil {!isNull (findDisplay 46)};
waituntil {typeof player in ["Epoch_Male_F","Epoch_Female_F"]};
waituntil {!isNil "Epoch_my_GroupUID"};
if ((getpos player) distance2d (getMarkerPos "respawn_west") < 10) then {
	[] execVM "script.sqf";
};

Another way is changing the script, that runs by click "teleport".

misson\epoch_code\compile\EPOCH_EnterBuilding.sqf

if !(isNull _this) then{
    [player,_this,Epoch_personalToken] remoteExec ["EPOCH_server_teleportPlayer",2];
};

if !(isNull _this) then{
       [] execVM "script.sqf";
};

 

Link to comment
Share on other sites

  • 0

G'day He-Man,

Sorry if my question was not very clear and late been without adsl since Thursday as some fucktard tech swapped the wrong ports around at my local exchange.

After gender selection, your clone is in the spawn-box, when the clone "clicks the the portal they want, it then runs a script -- Instead of just spawning at east,west or center traders.

example below

Spoiler

dataType="Marker";
		{
			dataType="Marker";
			init="null=[] execVM ""randomspawn\central.sqf"";";  //position[]={14939.934,0.053499073,15083.272};
			name="center";
			type="Empty";
			id=0;
		};

 

not sure if I can do this and if i should do this, any pity falls.

cheers

natoed

 

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...