Difference between revisions of "FindRandomReferenceOfAnyTypeInListFromRef - Game"
FindRandomReferenceOfAnyTypeInListFromRef - Game (edit)
Revision as of 08:54, 13 January 2014
, 08:54, 13 January 2014Removed confusing return function from syntax, as other functions on this wiki do not follow that format.
imported>Tox2ik |
imported>Chesko (Removed confusing return function from syntax, as other functions on this wiki do not follow that format.) |
||
(4 intermediate revisions by 2 users not shown) | |||
Line 7: | Line 7: | ||
== Syntax == | == Syntax == | ||
<source lang="papyrus"> | <source lang="papyrus"> | ||
ObjectReference Function FindRandomReferenceOfAnyTypeInListFromRef(FormList | ObjectReference Function FindRandomReferenceOfAnyTypeInListFromRef(FormList arBaseObjects, ObjectReference arCenter, float afRadius) global | ||
</source> | </source> | ||
Line 14: | Line 13: | ||
*arBaseObjectsA: The list of valid base objects to look for | *arBaseObjectsA: The list of valid base objects to look for | ||
*arCenter: The [[ObjectReference Script|reference]] to use as a center of the search. | *arCenter: The [[ObjectReference Script|reference]] to use as a center of the search. | ||
*afRadius: Maximum distance from center to look for a [[ObjectReference Script|reference]]. The unit of this | *afRadius: Maximum distance from center to look for a [[ObjectReference Script|reference]]. The unit of this parameter is comparatively much shorter than the radius of a cloak spell or the feet parameter given to "target actor" and "target location" spells. Try starting with a value of 400. | ||
parameter is comparatively much shorter than the radius of a cloak spell or the feet parameter given to "target actor" and "target | |||
location" spells. Try starting with a value of 400. | |||
== Return Value == | == Return Value == | ||
Line 66: | Line 63: | ||
*[[FindRandomReferenceOfType - Game]] | *[[FindRandomReferenceOfType - Game]] | ||
*[[FindRandomReferenceOfTypeFromRef - Game]] | *[[FindRandomReferenceOfTypeFromRef - Game]] | ||
*[[Unit]] |