Warhorse ScripBind documentation
ContentsIndexHome
PreviousUpNext
GetClosestAttachment
Syntax
C++
virtual int GetClosestAttachment(IFunctionHandler * pH, int characterSlot, Vec3 testPos, float maxDistance, const char* suffix);
Parameters 
Description 
int characterSlot 
Character slot. 
Vec3 testPos 
Position to be tested. 
float maxDistance 
Maximum distance to be tested. 
const char* suffix 
Suffix string. 

Syntax: Actor.GetClosestAttachment( int characterSlot, Vec3 testPos, float maxDistance, const char* suffix ) 

Gets the closest attachment to the specified position within the specified distance.

Copyright (c) 2012. All rights reserved.