dr_eyeball 16 Posted April 1, 2007 Purpose: I'm working on this script which simply adds ladders to various building types. Trying to manually position a ladder can be tedious. Usage: 1) You can add the ladder(s) to a single building: <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">nul = [_MyBuilding] execVM "AddBuildingLadders.sqf"; 2) You can specify a city centre position and radius, to add ladders to all recognised building types in that area: <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">nul = [getMarkerPos "CityCentreMarker", 500] execVM "AddBuildingLadders.sqf"; I think this could be used well in team vs team missions. If added in Ortego, it will add about 90 ladders. Download: Tiny mission including v0.1 script files. Download #1 - uploadpower (temp 2 week link) (I will update in a few weeks with another script.) Scope: - Currently in v0.1 it recognizes 6 common building types (usually 2 or 4 level buildlings). Features: Option to add Action to "Reach for ladder" for slightly out of reach ladders. (Given that there are only 2 ladder types to choose from and the half ladder is buggy to use, at best.) Known problems: - (ArmA) Some ladders (maybe 1 in 50) appear warped horizontally. I suspect it's due to stacked objects on uneven ground. Warped ladder screenshot. - Probably can't command A.I. players to use these ladders. Future plans: - add more building types, - combine all scripts into one file, - detect building collision for joined/touching buildings. Anyone who wants to contribute to the script is welcome. Share this post Link to post Share on other sites
-SPA-LynxEye 0 Posted April 1, 2007 The warp ladder. Maybe you need to face the same angle (heading,direction) that building. Obviously, sry. I was meaning: put the object, and try to rotate it. Maybe setDir... I think you need not to 'match' exactly the ground level with the 'origin' of the ladder. If this last is not true... try to 'slide up' the ladder over the top place where the final point of the ladder is 'resting'. If this last distance of 'slide up' is not so long... no matter if players 'jumping' when in the top side of the ladder, jumping from top side of ladder to the flat place you going... it will not hurt them. If the jump is < 2.5 meters height... no added damage. And still, players will be able to move down your new ladder. This last, needing to not to reach that 2.5 meters to allow ArmA, show the action to go down the ladder. Share this post Link to post Share on other sites