modelleicher / FS19_simpleIC

New Interactive Control Script for FS19
65 stars 54 forks source link

tool control #93

Closed zcaalock closed 3 years ago

zcaalock commented 3 years ago

can you use this script to control tools? F.e click button inside cabin to lower tool or turn on lights

modelleicher commented 3 years ago

Yes indeed have a look at the examples.xml but not all features are fully implemented yet and thus some are missing from that file for now

zcaalock commented 3 years ago

i want to set tool up/down (same as press v key) can you say how to do it?

modelleicher commented 3 years ago

Have a look at the examples.xml especially the part "attacherControl" ;)

zcaalock commented 3 years ago

i have something like this and it`s not working. Normal animation without attacherControl is working fine

`

` edit: cannot instert cone for some reason ![code](https://user-images.githubusercontent.com/24411061/115148422-c5744200-a05f-11eb-995a-9a1d8dbada4c.jpg)
modelleicher commented 3 years ago

you're missing an </attacherControl> tag to close <attacherControl ... >

zcaalock commented 3 years ago

it`s not missing, i copied it wrong. Will this code enable tool up/down by clicking leaver in the cabin? This is what i want to archive. What is attacherIndex? i cannot find any documentation on this parameter.

modelleicher commented 3 years ago

Yes, this code will lower or raise the Implement which is in the first attacherJoint (attacherIndex="1") when you click the "X"

attacherIndex is the number of the attacherJoint this is related to. Its the same system as with PTO joints, connectionHoses and so on. attacherIndices

zcaalock commented 3 years ago

ok, thanks for fast answer