Jump to content
Sign in to follow this  
colonel_klink

Getting building positions on a map?

Recommended Posts

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

Why not grab the numbers from WRPTool? smile_o.gif

Otherwise I guess just use the ol' getpos select 0 etc method smile_o.gif

Share this post


Link to post
Share on other sites

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

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 crazy_o.gif  

* Klinkster shrinks into corner and cries shamefully biggrin_o.gif

Thanks guys, much appreciated

Share this post


Link to post
Share on other sites

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
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 crazy_o.gif  

* Klinkster shrinks into corner and cries shamefully biggrin_o.gif

Thanks guys, much appreciated

Heheheh....Matron will be around to spank you later! tounge_o.gifwow_o.gif

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×