D.murphy man 0 Posted December 15, 2002 hey all,im making a multiplayer mission and i cant get it to respawn with Sebnam pack 2 weapons so i was woundering if any one could help me?oh and if it is possible to respawn with your original weapon load out (i.e if u was a LAW guy when you started you would have a LAW when you respawn ect..)thnx in advance. merry christmas Share this post Link to post Share on other sites
Doolittle 0 Posted December 15, 2002 Add this to init.sqs: </span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE">? local player : [] exec "player.sqs" <span id='postcolor'> Then make these files: player.sqs </span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE">_magazines = magazines player _weapons = weapons player #event _obj = player _obj addEventHandler ["hit", {_this exec "hit.sqs"}] #alive ~5 ? alive _obj : goto "alive" _obj removeEventHandler ["hit", 0] #notalive ~0.01 ? not alive player : goto "notalive" "player removeMagazine _x" forEach magazines player "player removeWeapon _x" forEach weapons player "player addMagazine _x" forEach _magazines "player addWeapon _x" forEach _weapons player selectWeapon (_weapons select 0) goto "event" <span id='postcolor'> hit.sqs </span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE">_player = _this select 0 _causedBy = _this select 1 _howMuch = _this select 2 ? alive _player : exit ? not alive _causedBy : exit ? _player == _causedBy : exit ? side _player != west and side _player != east : exit ? side _player == side _causedBy : goto "damage" _pos = getMarkerPos "respawn_west" ? side _player == east : _pos = getMarkerPos "respawn_east" _camera = "Camera" camCreate _pos _dist = _camera distance _player camDestroy _camera ? _dist > 50 : exit #damage _causedBy setDamage 1 <span id='postcolor'> This code includes killing someone if they kill a teammate, and also killing someone if they shoot someone in their spawn. Doolittle Share this post Link to post Share on other sites