[Q] <find_object_component />

The place to discuss scripting and game modifications for X Rebirth.

Moderators: Moderators for English X Forum, Scripting / Modding Moderators

Post Reply
User avatar
ybeline
Posts: 83
Joined: Sun, 22. Aug 10, 13:55
x4

[Q] <find_object_component />

Post by ybeline » Fri, 22. Nov 13, 21:35

Hello,



Is this code appropriate if I want to get all the Upgradetraders (=Mechanics) of the platform on which the player is standing?

<find_object_component name="$Upgradetraders_OnPlatform" object="player.platform" multiple="true" class="class.npc.type.upgradetrader" />

Edit:
<find_object_component name="$Upgradetraders_OnPlatform" object="player.platform" multiple="true" class="class.npc" entitytype="entitytype.upgradetrader" />
That seems to work :)



Thanks,

Regards,

ybeline

Post Reply

Return to “X Rebirth - Scripts and Modding”