Jump to content
Sign in to follow this  
RogerJ

How to create respawn in the vehicle?

Recommended Posts

I need help to create a respawn point for any vehicle.

I know respawn create the base with the marker.

But I do not know how to marker "follow" the vehicle when it is moved to another position.

You may have to create an action at vehicle maker to create it, if that's how to do?

thank you in advance

Share this post


Link to post
Share on other sites

You'd use the MPRespawn eventhandler to move them into the vehicle after respawning normally. It should be quick enough that the player won't see the teleport.

To move the respawn point you'd use setMarkerPosLocal command to move the respawn when you wanted to wherever the car is.

Share this post


Link to post
Share on other sites

So that the respawn marker is moved with the vehicle?

Put this in the init line of the vehicle.

0 = this spawn {
_veh = _this;
while {true} do
{
	"respawn_west" setMarkerPosLocal (getPosATL _veh);
	sleep 1;
};
};

Share this post


Link to post
Share on other sites
You'd use the MPRespawn eventhandler to move them into the vehicle after respawning normally. It should be quick enough that the player won't see the teleport.

To move the respawn point you'd use setMarkerPosLocal command to move the respawn when you wanted to wherever the car is.

So that the respawn marker is moved with the vehicle?

Put this in the init line of the vehicle.

0 = this spawn {
_veh = _this;
while {true} do
{
	"respawn_west" setMarkerPosLocal (getPosATL _veh);
	sleep 1;
};
};

Thank you worked perfectly, I'm starting in edition of missions'll still need the help.

thank you

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  

×