Warhorse ScripBind documentation
ContentsIndexHome
PreviousUpNext
CScriptBind_Entity::GetLinkTarget Method
Syntax
C++
int GetLinkTarget(IFunctionHandler * pH, const char * name);
Parameters 
Description 
const char * name 
Name of the link. 
(optional) ith 
If specified, the i'th link with given name for which to look up the targeted entity. Default value: 0 (first link with given name) 

The ID of the entity that the link is targeting or nil if no such link exists.

!

Entity.GetLinkTarget( name, ith )

! ! Returns the ID of the entity that given link is targeting. ! !  

!  

!  

! ! ! ! ! ! !

Optional syntax: Entity.GetLinkTarget( const char *name, int targetIndex ) - returns linked entity by link name and by zero based index. if there are several links with this name, the targetIndex-th link entity is returned.

Copyright (c) 2012. All rights reserved.