Jump to content
🛡️FORUMS ARE IN READ-ONLY MODE Read more... ×
Sign in to follow this  
Qplas

Respawning inside vehicles

Recommended Posts

Hey all

Yes, I searched before posting. And I in fact found one thread exactly about this topic, but I can't get it to work.

I have a truck called "respawncart" on the map

I have a description.ext file with

respawn = 3;

My init.sqf file says

player addEventHandler ["KILLED", "execVM 'respawn.sqf'];

And lastly respawn.sqf:

waitUntil {alive player};
player moveInCargo respawnCart;

Yet, when I die I respawn on the exact same position, much like as if my respawn was set to "instant" or "2".

What's wrong?

Thanks

Share this post


Link to post
Share on other sites

player addEventHandler ["KILLED", "execVM 'respawn.sqf'[color="red"]"[/color]];

;)

Share this post


Link to post
Share on other sites

player addEventhandler ["respawn", {player moveInCargo respawnCart}];

:)

Xeno

Share this post


Link to post
Share on other sites
Sign in to follow this  

×