Difference between revisions of "GetNearestObject"

From NWN Lexicon
Jump to: navigation, search
(dongdong8)
(Undo revision 22659 by 208.91.68.228 (talk))
Line 1: Line 1:
http://www.uggslipperssale.us.com
+
=GetNearestObject(int, object, int)=
http://www.outletlongchamp.us.org
+
 
http://www.louisvuitonnoutlet.com
+
Gets the nearest object, which matches given criteria, to the selected target.
http://www.katespadehandbagsoutlet.us.org
+
 
http://www.coachoutletonlineshopping.us.org
+
<nwscript>
http://www.coachoutlet-online.eu.com
+
object GetNearestObject(
http://www.manoloblahnik.us
+
    OBJECT_TYPE_ALL,
http://www.truereligionsale.com.co
+
    object oTarget = OBJECT_SELF,
http://www.thenorthface-outlet.in.net
+
    int nNth = 1
http://www.newbalance-shoes.us.com
+
);
http://www.truereligion-jeans.us
+
</nwscript>
http://www.uggfactoryoutlet.com.co
+
 
http://www.uggclearancesale.in.net
+
====Parameters====
http://www.hollisterclothing.us.org
+
 
http://www.katespadeoutletstore.us.org
+
''nObjectType''
http://www.nikeairmax90s.co.uk
+
 
http://www.rayban-sunglassesonsale.us.com
+
[[ object_type | OBJECT_TYPE_ALL ]])
http://www.coachfactoryoutlet.nom.co
+
 
http://www.tommyhilfigercanada.ca
+
''oTarget''
http://www.ray-bansunglasses2017.us.com
+
 
http://www.uggsoutletstores.us.com
+
(Default: OBJECT_SELF)
http://www.moncleroutlet.us.org
+
 
http://www.nike.me.uk
+
''nNth''
http://www.michael--korshandbags.us.com
+
 
http://www.ugg.ind.in
+
(Default: 1)
http://www.outletcanadagoose.ca
+
 
http://www.oakleysunglassesofficialsite.us.com
+
<br />
http://www.adidastore.co.uk
+
 
http://www.prada.us.org
+
====Description====
http://www.canadagooseclearance.us.com
+
 
http://www.cheap-uggboots.com.co
+
Get the Nth object nearest to oTarget that is of the specified type. <br /> Return value on error: OBJECT_INVALID <br /><br /> The function returns the Nth (default is 1, i.e. nearest) object that matches specified type. By default ‘type’ is set to OBJECT_TYPE_ALL, therefore the function will return the Nth nearest valid object unless you specify a type in the form OBJECT_TYPE_* (see end of description for a complete list of valid object types). Also by default the oTARGET is equal to OBJECT_SELF but may be set to another object. <br /><br /> For example, the following script snippet would set object oNearestDoor to the third nearest door to the object oPC: <br /> object oNearestDoor = GetNearestObject(OBJECT_TYPE_DOOR, oPC, 3) <br /><br /> List of available object types constants: <br /> OBJECT_TYPE_ALL (default) <br /> OBJECT_TYPE_AREA_OF_EFFECT <br /> OBJECT_TYPE_CREATURE <br /> OBJECT_TYPE_DOOR <br /> OBJECT_TYPE_ITEM <br /> OBJECT_TYPE_PLACEABLE <br /> OBJECT_TYPE_STORE <br /> OBJECT_TYPE_TRIGGER <br /> OBJECT_TYPE_WAYPOINT
http://www.usuggbootsoutlet.com
+
 
http://www.ugg.me.uk
+
<br /><br />
http://www.cheapraybans.ca
+
 
http://www.cheapjordansshoes.in.net
+
====Remarks====
http://www.swarovski-jewelry.name
+
 
http://www.adidasjeremyscott.in.net
+
It can only return objects in oTarget's area, as GetNearestObjectByTag does, and is intended behaviour. <br /><br /> Obviously, this also means Modules and Areas cannot return a valid value for this.
http://www.jordanshoes.us.org
+
 
http://www.redbottomsshoes.me.uk
+
<br />
http://www.birkenstockoutlet.us.com
+
 
http://www.adidasshoessale.in.net
+
====Version====
http://www.hollistercooutlet.us.com
+
 
http://www.katespade-outlet.in.net
+
1.22
http://www.poloralphlaurenoutletoff.us.com
+
 
http://www.outletcanadagoose.com.co
+
====Example====
http://www.fitflops.org
+
 
http://www.truereligionoutletjeans.us
+
<nwscript>
http://www.outletugg.ca
+
// This script is for a bar maid tagged "BAR_MAID".
http://www.poloralphlaurenoutletstores.us.com
+
// The bar maid will find the third nearest door
http://www.ugg-outlets.com.co
+
// and attempt to walk to it.
http://www.ralphlaurenpolooutlet.us.org
+
http://www.underarmouroutletclearance.com
+
void main
http://www.uggs-outlet.name
+
{
http://www.raybansunglassesforwomen.us.com
+
    // Initialize objects.
http://www.wholesale-nfljerseys.us.com
+
    object oBarMaid = GetObjectByTag("BAR_MAID");
http://www.poloralph--lauren.us.com
+
    object oDoor = GetNearestObject(OBJECT_TYPE_DOOR, oBarMaid, 3)
http://www.cheapraybansunglasses.net.co
+
    // Bar maid walks to the third nearest door.
http://www.vibramfivefingerssale.com
+
    ActionForceMoveToObject(oDoor)
http://www.burberryscarfsale.in.net
+
}
http://www.northfaceoutletstore.us.org
+
</nwscript>
http://www.outletuggs.com.co
+
 
http://www.coachoutletfactoryon.com
+
====See Also====
http://www.oakleysunglasses2017.us.com
+
 
http://www.newcoachoutlet.us.com
+
{| class="seealso"
http://www.canadagoosecanada.ca
+
| width="1px" align="right" valign="top" | <font color="gray">functions: </font>
http://www.jordans.in.net
+
|
http://www.manchesterunitedjersey.org.uk
+
[[  GetNearestObjectToLocation  | GetNearestObjectToLocation ]]
http://www.coachoutletonline.nom.co
+
|-
http://www.ugg-australia.com.co
+
|-
http://armani.sunglassescheap.us.com
+
| width="1px" align="right" valign="top" | <font color="gray">constants: </font>
http://www.coach-outlet.nom.co
+
|
http://www.uggbootsclearance.net.co
+
[[ object_type | OBJECT_TYPE_* Constants  ]]
http://www.canadagoose.com.co
+
|}
http://www.cheapjerseysnflwholesale.us
+
 
http://www.north-face-outlet.in.net
+
<br />
http://www.coachoutlet-factory.us.com
+
----
http://www.birkenstocksandals.us.org
+
<font color="gray">  author: Jason Simpson, editor: Jasperre</font><br />  <br />
http://www.adidasyeezy350boost.org.uk
+
[[Category:Functions]]
http://www.uggboots70off.com.co
+
[[Category:Get_Data_from_Object_Functions]]
http://www.converseshoesoutlet.us.com
 
http://www.mulberrybagsuk.me.uk
 
http://www.ugg-italia.it
 
http://www.oakleysunglassessport.us.com
 
http://www.uggsadd.com
 
http://www.katespadestoreoutlet.us.com
 
http://www.doudounecanada-goose.fr
 
http://www.raybanpascher.fr
 
http://www.pololaurenshirts.com
 
http://www.cheaprolexwatches.us.com
 
http://www.coach-canadaoutlet.ca
 
http://www.oakleysunglassesoutletstore.us.org
 
http://www.michaelkorsuk.com.co
 
http://dolceandgabbana.sunglassescheap.us.com
 
http://www.uggbootscheaponline.in.net
 
http://www.hermesbeltoutlet.com
 
http://www.ray-ban-sunglasses.com.au
 
http://www.thenorthfacecanada.ca
 
http://www.burberry.us.org
 
http://www.stansmithadidas.us.com
 
http://www.nbajerseysshop.us.com
 
http://www.uggoutlets.com.co
 
http://www.coach-factoryoutletonlines.com
 
http://carrera.sunglassescheap.us.com
 
http://www.uggbootsclassic.ca
 
http://www.pradabags.in.net
 
http://www.uggbootsonsale65off.in.net
 
http://www.cheap-uggs.com.co
 
http://www.pandora-rings.net
 
http://www.wholesale-nfl-jerseys.us
 
http://www.montblancpenofficials.us.com
 
http://www.ferragamoshoesoutlet.us.com
 
http://www.fitflops.us.org
 
http://www.nikefactoryoutletstores.us.com
 
http://www.oakley-sunglassesonsale.us.com
 
http://oakley.sunglassescheap.us.com
 
http://www.uggsaustraliaboots.us.com
 
http://www.burberryoutlet-canada.ca
 
http://www.coachoutletonline70off.us.com
 
http://www.uknorthface.org.uk
 
http://www.chaussureschristianlouboutin.fr
 
http://www.uggs-outlet-online.us
 
http://cartier.sunglassescheap.us.com
 
http://www.ugg-boots.name
 
http://www.pandora-jewelry.me.uk
 
http://www.michaelkorsoutlet70off.us.com
 
http://www.christianlouboutinoff.us
 
http://www.poloshirt.in.net
 
http://www.uggsale.com.co
 
http://www.uggfactoryoutlet.in.net
 
http://www.uggfed.com
 
http://www.ralphlaurenpolo.in.net
 
http://www.uggaustraliaboots.in.net
 
http://www.uggbootsoutlets.org
 
http://www.cheapreplicawatches.us.com
 
http://www.outletuggs.net.co
 
http://www.ugg-australia.ca
 
http://www.cheapmlbjerseysshop.us.com
 
http://www.ray-bansunglassesoutlets.us.com
 
http://www.michaelkorsoutletoff.us.com
 
http://www.uggboots70off.in.net
 
http://prada.sunglassescheap.us.com
 
http://www.louis-vuitton.nom.co
 
http://www.uggboots.com.co
 
http://www.hermesbirkinhandbags.us.com
 
http://www.adidasoutletclearance.com
 
http://www.uggbootsonsale75off.in.net
 
http://www.uggaustraliastore.ca
 
http://www.raybansunglassesoutlet.net.co
 
http://www.uggsclassicboots.us.com
 
http://www.uggoutletstore.net.co
 
http://www.coachoutlet70off.us.com
 
http://www.nikeairmaxshoes.us.com
 
http://www.nikeairjordans.co.uk
 
http://www.raybans-sunglassesoutlet.us.com
 
http://www.christianlouboutindown.com
 
http://www.ugg.com.co
 
http://www.uggsonclearance.com.co
 
http://www.toryburchhandbagsoutlet.us.com
 
http://www.pololaurenralphlauren.us.com
 
http://www.michaelkorsoutletsonlinesale.us.com
 
http://www.officialcoachfactoryoutletonline.us.com
 
http://www.canadagoosecanada.name
 
http://www.canadagoosesale.com.co
 
http://www.hermesoutlets.us.com
 
http://www.christianlouboutinoutletuk.org.uk
 
http://www.giuseppe-zanotti.us.com
 
http://www.monclerjacketsoutlet.us.com
 
http://www.uggbootsoutlets.in.net
 
http://www.uggbootsonsale75off.us.org
 
http://www.rayban--sunglassess.us.com
 
http://www.cheap-mlb-jerseys.us.com
 
http://www.ralphlauren-poloshirts.co.uk
 
http://www.uggsonline.in.net
 
http://www.michael-kors-outlet.eu.com
 
http://www.uggoutlet70off.in.net
 
http://www.ukuggboots.co.uk
 
http://www.salvatoreferragamo.in.net
 
http://www.fitflopssale.org.uk
 
http://www.canadagoosesale.name
 
http://www.outletugg.com.co
 
http://www.uggbootsaustralia.in.net
 
http://www.uggbootsoutletcanada.ca
 
http://www.nikefootballbootsuk.org.uk
 
http://www.ray-bansunglassesoutlet.com.co
 
http://www.airjordan-14.us
 
http://www.coachwallets.us.com
 
http://www.coachfactory-outletonline.org
 
http://www.truereligion-jeans.com.co
 
http://www.tory-burchoutletonline.us.com
 
http://www.christianlouboutin.name
 
http://www.uggsoutletstore.org
 
http://www.longchamp-outlet.us.org
 
http://www.uggbootsonsale70off.us.org
 
http://www.nike-airmaxuk.me.uk
 
http://www.thenorthfaceoutletjackets.us.com
 
http://www.uggsslippers.com.co
 
http://www.uggboots-onsale.us
 
http://versace.sunglassescheap.us.com
 
http://www.michaelkorsuk.me.uk
 
http://www.canadagoosecanada.com.co
 
http://www.uggsoutlet.org
 
http://www.uggbootsforwomen.com.co
 
http://www.cheapraybansunglass.co.uk
 
http://www.redbottoms.org.uk
 
http://www.uggbootsclearances.com.co
 
http://www.coachoutletsclearance.us.com
 
http://www.pradaoutletonlinestore.us.com
 
http://www.northfaceoutlet70off.us.com
 
http://www.uggbootsaustralia.us.org
 
http://www.coachfactoryoutlet-onlinestore.us.com
 
http://rayban.sunglassescheap.us.com
 
http://www.christianlouboutinoutletusa.us.com
 
http://www.longchampoutlet-online.com
 
http://www.nikenfljerseysfreeshipping.us
 
http://www.adidasshoesforsale.in.net
 
http://www.michaelkorsoutletonline80off.us.com
 
http://www.air-jordanpascher.fr
 
http://www.toryburchoutletoff.us.com
 
http://www.canada-goose-jackets.co.uk
 
http://www.clearancemichaelkorsoutlet.us.com
 
http://www.suprashoesclearance.us.com
 
http://www.outlet-moncler.us
 
http://www.michaelkorsukoutlet.me.uk
 
http://www.burberryoutletoff.us.com
 
http://www.coach-factoryoutletusa.com
 
http://www.nikehuarache.net
 
http://www.cheapnikenfljerseyswholesale.us
 
http://www.converse-outletstore.com
 
http://www.burberryscarf.com.co
 
http://www.uggbootsclearances.com.co
 
http://www.salomon-shoes.in.net
 
http://www.nikeoutletstoreonline.us.com
 
http://www.uggoutlet70off.com.co
 
http://www.fitflops.us.com
 
http://www.uggsboots.com.co
 
http://www.outletthenorthface.us.com
 
http://www.oakleysungalsses.nom.co
 
http://www.ugg.org.uk
 
http://www.nikerosherunsale.co.uk
 
http://www.nmdadidas.co.uk
 
http://www.northfacejacket.us.com
 
http://www.birkenstockshoes.org.uk
 
http://www.uggbootsonsale70off.net.co
 
http://www.coachonline.us.org
 
http://www.burberry-outlet-stores.us.com
 
http://www.fitflopsoutlet.us.com
 
http://www.longchamp-handbags.us.org
 
http://www.ray-banaviatorsunglasses.org.uk
 
http://www.cheapairjordans.us.com
 
http://www.moncler-jackets.us.org
 
http://www.uggbootssale70off.org
 
http://www.cheap-jordan-shoes.us.com
 
http://www.cheapjordansshoes.us.com
 
http://www.ralphlaurenoutlet-poloshirts.us.com
 
http://www.ugg-bootscheap.com.co
 
http://www.nike-factoryoutlet.us.com
 
http://www.adidasshoesoutletstore.us.com
 
http://www.usboots.us.com
 
http://www.nikestores.me.uk
 
http://www.cheapnfljerseyswholesale.us.com
 
http://www.montblanc.com.co
 
http://www.baseballjerseys.us.com
 
http://www.uggoutlet.nom.co
 
http://www.uggslippers.us.org
 
http://www.jordans-fusion.com
 
http://www.cheapnhljerseysshop.us.com
 
http://www.monclerdownjackets.co.uk
 
http://www.originalsadidas.co.uk
 
http://www.uggsclearance.com.co
 
http://www.supreme-newyork.com
 
http://www.newmichaelkorsoutlet.us.com
 
http://www.pandora-jewelry.name
 
http://www.christianlouboutinshoes.me.uk
 
http://www.pandorajewelryoutlet.us.org
 
http://www.michael--kors.us.org
 
http://www.northfaceclearance.us.com
 
http://www.cheap-jordans.us.com
 
http://www.cheapmichaelkorshandbags.us.org
 
http://www.adidasfootballboots.org.uk
 
http://www.nikefactory-outlet.us.com
 
http://www.vibramfivefingers.in.net
 
http://www.katespadehandbagssale.us.com
 
http://www.nhlhockey-jerseys.us.com
 
http://www.ferragamooutlet.us.com
 
http://www.nfljerseysfromchina.us.com
 
http://www.oakleyssunglassescheap.com
 
http://www.coachhandbagsfactoryoutletonline.us.com
 
http://www.mbt.us.com
 
http://dior.sunglassescheap.us.com
 
http://www.michaelkors--outlet.us.org
 
http://www.moncler.eu.com
 
http://www.fitflopssaleclearance.us.org
 
http://www.supremeclothing.us.com
 
http://www.monclerjacketsuk.uk
 
http://www.michaelkorsoutlet75off.us.com
 
http://www.calvinkleinstore.in.net
 
http://www.oakleysunglasses-vault.us.com
 
http://www.oakleysunglassescanada.ca
 
http://www.uggsaustralia.net.co
 
http://www.uggoutletsonline.us.com
 
http://www.cheap-ugg-boots.us.org
 
http://www.louisvuittonoutlet.nom.co
 
http://www.montblanc-pens.name
 
http://www.coach-bags.us.org
 
http://www.adidasstansmith.co.uk
 
http://www.uggsoutletstores.in.net
 
http://www.uggonsale.in.net
 
http://www.coachfactoryoutletonlinesale.us.com
 
http://www.christianlouboutinoutletclearance.us.com
 
http://www.louboutinoutlets.us.com
 
http://www.jordanretro.us
 
http://www.coachoutletstoreonlineofficial.us.com
 
http://www.katespadeoutletsale.us.com
 
http://www.uggbootsoutletclearance.us.com
 
http://www.outletpolo-ralphlauren.us.com
 
http://www.saleuggboots.co.uk
 
http://www.michaelkors-outletonline.eu.com
 
http://www.pandoracharmjewelry.us.com
 
http://www.truereligion-outletjeans.us.com
 
http://www.nikerunningshoes.co.uk
 
http://www.sunglassesoakleycheap.us.com
 
http://www.outletuggboots.com.co
 
http://www.cheaplouboutinshoesuk.org.uk
 
http://www.polo-ralphlaurenoutlet.in.net
 
http://www.northface-clearance.us
 
http://www.outletcoachfactoryonline.us.com
 
http://www.adidasyeezy-boost.us.com
 
http://www.uggsaustralia.it
 
http://www.pandorajewelrycanada.ca
 
http://www.wwwuggaustralia.co.uk
 
http://www.blackhawksjersey.com
 
http://www.coach-factoryonline.us.org
 
http://www.pradahandbagsoutlet.us.com
 
http://www.longchampsacsoldes.fr
 
http://www.michaeljordan-shoes.com
 
http://www.poloralphlauren-outletonline.us.com
 
http://www.thenorthfaceclearance.us.com
 
http://www.nikeoff.com
 
http://www.uggbootsaustralia.com.co
 
http://www.discountnike.us.com
 
http://www.adidastrainersuk.uk
 
http://www.michaelkors-handbags.us
 
http://www.hermesbags.me.uk
 
http://www.adidastrainersuk.me.uk
 
http://www.adidaswings.name
 
http://www.uggbootsclearanceoutlet.com.co
 
http://www.cheapralphlaurensale.co.uk
 
http://www.uggclearancesale.us.com
 
http://www.michaelkorstotehandbags.us.com
 
http://www.uggsonsale.net.in
 
http://www.longchamp-outletstore.us.com
 
http://www.ralphlauren.eu.com
 
http://www.snapbackshatswholesale.us.com
 
http://www.louisvuittonhandbags.nom.co
 
http://www.ralphlaurenoutletofficial.us.com
 
http://www.michaelkorshandbags.nom.co
 
http://www.replica-watches.us.com
 
http://www.vansshoesoutlet-store.com
 
http://www.pandoracharms.us.org
 
http://www.soccerjersey.us.com
 
http://www.mlbjerseys.org
 
http://www.uggbootsclearance.net.co
 
http://www.coachfactoryoutlet-online.eu.com
 
http://www.cheapnfljerseysshop.us.com
 
http://www.northfacejackets.us.org
 
http://www.niketrainers.org.uk
 
http://www.michaelkors--outlet.us.com
 
http://www.truereligionjeans-outlet.us.com
 
http://www.uggsoutlet.nom.co
 
http://www.coachoutletonline-sale.us.com
 
http://www.coachcom.us.com
 
http://www.nikeblazers.us
 
http://www.uggbootsonsale70off.com.co
 
http://www.truereligionuk.org.uk
 
http://www.basketballshoesstore.us.com
 
http://www.nikeairforce1.net
 
http://www.nike-air-huarache.org.uk
 
http://www.supremeuk.co.uk
 
http://www.superdry.me.uk
 
http://www.timberlandoutlet.name
 
201710.6wengdongdong
 

Revision as of 20:42, 8 November 2017

GetNearestObject(int, object, int)

Gets the nearest object, which matches given criteria, to the selected target.

object GetNearestObject(
    OBJECT_TYPE_ALL,
    object oTarget = OBJECT_SELF,
    int nNth = 1
);

Parameters

nObjectType

OBJECT_TYPE_ALL )

oTarget

(Default: OBJECT_SELF)

nNth

(Default: 1)


Description

Get the Nth object nearest to oTarget that is of the specified type.
Return value on error: OBJECT_INVALID

The function returns the Nth (default is 1, i.e. nearest) object that matches specified type. By default ‘type’ is set to OBJECT_TYPE_ALL, therefore the function will return the Nth nearest valid object unless you specify a type in the form OBJECT_TYPE_* (see end of description for a complete list of valid object types). Also by default the oTARGET is equal to OBJECT_SELF but may be set to another object.

For example, the following script snippet would set object oNearestDoor to the third nearest door to the object oPC:
object oNearestDoor = GetNearestObject(OBJECT_TYPE_DOOR, oPC, 3)

List of available object types constants:
OBJECT_TYPE_ALL (default)
OBJECT_TYPE_AREA_OF_EFFECT
OBJECT_TYPE_CREATURE
OBJECT_TYPE_DOOR
OBJECT_TYPE_ITEM
OBJECT_TYPE_PLACEABLE
OBJECT_TYPE_STORE
OBJECT_TYPE_TRIGGER
OBJECT_TYPE_WAYPOINT



Remarks

It can only return objects in oTarget's area, as GetNearestObjectByTag does, and is intended behaviour.

Obviously, this also means Modules and Areas cannot return a valid value for this.


Version

1.22

Example

// This script is for a bar maid tagged "BAR_MAID".
// The bar maid will find the third nearest door
// and attempt to walk to it.
 
void main
{
     // Initialize objects.
     object oBarMaid = GetObjectByTag("BAR_MAID");
     object oDoor = GetNearestObject(OBJECT_TYPE_DOOR, oBarMaid, 3)
     // Bar maid walks to the third nearest door.
     ActionForceMoveToObject(oDoor)
}

See Also

functions: 

GetNearestObjectToLocation

constants: 

OBJECT_TYPE_* Constants



 author: Jason Simpson, editor: Jasperre