OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting Multiplayer => Topic started by: Commando on 07 Sep 2003, 01:59:08
-
I got a serious bugg in my mission the rock and i discovered it at my latest weekend lan party with 2 friends that i respawn where i died and i also respawn under the concrete blocks that i have placed in the water... when starting the mission the soldiers starts on top of the concrete blocks but after a few respawns here and there I respawned under the concrete block in the water and killing me almost instantly... :-\
any one got any ideas on how to fix this?
-
change the respawn location or when the player becomes alive use a setpos getpos command increasing the players height
Player setpos [getpos this select 0, getpos this select 1, X]
X is the height, above or below ground height that you want to shift the object , player
>0 is higher
<0 eg -1 is lower
-
Well i have put the setpos code in the init line of the soldeirs but it seems like it doesn't work so well after a few deaths :P
But im thinking about puting the soldiers on some small real islands and not on the concrete blocks maybe that will make a difference.