colonel_klink 0 Posted January 12, 2004 Ok I have placed some buildings on a map thru Wrptool and I know the buildings IDs are say 220 and 1254. What I would like to know is there a way of getting that buildings' x,y position on a map thru an external addon that is placed on a map and contains the ID as above. hanks Share this post Link to post Share on other sites
Guest Posted January 12, 2004 Why not grab the numbers from WRPTool? Otherwise I guess just use the ol' getpos select 0 etc method Share this post Link to post Share on other sites
Planck 1 Posted January 12, 2004 I would use getpos as Leone has said, something like: _position = [(getpos (object 220) select 0), (getpos (object 220) select 1)] But maybe I have misunderstood your question. Planck Share this post Link to post Share on other sites
colonel_klink 0 Posted January 13, 2004 heheh I guess I've been doing it the hard way, as yes I can get the position from wrptool as its my own map. Duh  * Klinkster shrinks into corner and cries shamefully Thanks guys, much appreciated Share this post Link to post Share on other sites
BraTTy 0 Posted January 13, 2004 The OFP nearestbuilding scripting command help? Would give the buildings id numbers <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE"> nearestBuilding obj Operand types: obj: Object Type of returned value: Object Description: Nearest building to given object. Example: neareastBuilding player Share this post Link to post Share on other sites
Guest Posted January 13, 2004 hehehI guess I've been doing it the hard way, as yes I can get the position from wrptool as its my own map. Duh  * Klinkster shrinks into corner and cries shamefully Thanks guys, much appreciated Heheheh....Matron will be around to spank you later! Share this post Link to post Share on other sites