I want to create a counter of modules for my mod
Or simply to understand how to access the module station
<find_object_component object="$Stations.{$i}" name="$Cmpnent" multiple="true"/>
<show_help log="true" force="true" custom="'Number of modules: %1'.[$Cmpnent.count]"/>
I can not create a counter modules.
$Cmpnent.count always returns 0
what is wrong
find_object_component - not working?
Moderators: Scripting / Modding Moderators, Moderators for English X Forum
-
- Posts: 33
- Joined: Sun, 1. Dec 13, 17:01
find_object_component - not working?
Last edited by V-virus on Fri, 27. Feb 15, 21:12, edited 1 time in total.
-
- EGOSOFT
- Posts: 13126
- Joined: Sat, 9. Nov 02, 11:45
-
- Posts: 33
- Joined: Sun, 1. Dec 13, 17:01