COMMUNITY FORUM

AnimatedObject.onCreate modDesc.xml category="ONFOOT"

Forum Overview >> Farming Simulator 17

CategoryFarming Simulator 17
Created23.01.2017 17:31


Oetten Oetten (oetten) 23.01.2017 17:35
which category for AnimatedObjects in modDesc.xml are possible or is there a category for use when i'm in a vehicle?
Default is "ONFOOT" like here: <input name="LIGHTSWITCH_CLICK" category="ONFOOT" key1="" key2="" device="0" button="BUTTON_3" mouse="MOUSE_BUTTON_LEFT" />

Bilbo Beutlin (BBeutlin) 23.01.2017 18:27
Never looked into "inputBinding.xml" or other mods' "modDesc.xml"?
Beneath "ONFOOT" there is the category "VEHICLE". If you wish to have both: category="ONFOOT VEHICLE".

Oetten Oetten (oetten) 23.01.2017 18:39
i've looked into the inputbindig, but when i use "ONFOOT VEHICLE" the keys aren't shown on help and only work outside the vehicle
here my test: <input name="ANIMATED_OBJECT_OPEN_DOOR" category="ONFOOT VEHICLE" key1="KEY_rightbracket" key2="" device="0" button="BUTTON_3" mouse="MOUSE_BUTTON_LEFT" />

Bilbo Beutlin (BBeutlin) 23.01.2017 23:07
Check your "inputBinding.xml" whether the changes were accepted.
Usually the inputBinding loads key assignments and attributes only on first loading of the mod. If you change something afterwards, you should edit the inputBinding manually.

Oetten Oetten (oetten) 24.01.2017 08:34
thx bilbo beutin, i've checked the inputBinding.xml and my changes are in it.
my trigger is 100% in the trigger an the option dont appear in the helpmenu when i'm in a vehicle, has anyone a mod and the changes for modDesc.xml and animatedObjects.xml where i can activate the animation when i'm in a vehicle?

Bilbo Beutlin (BBeutlin) 24.01.2017 14:05
Check the object trigger for proper collision bitmask. See for reference "sdk/collisionMasks.txt".

Oetten Oetten (oetten) 24.01.2017 22:44
good idea, but all combinations that i tryed from the sdk doesn't work :(

Bilbo Beutlin (BBeutlin) 24.01.2017 23:29
Well, I must admit, I don't know the responsible AnimatedObject.lua in detail. But I see no reason why an activation from inside a vehicle should be prohibited.
However - who knows what the Giants developers have thought about? ;)

All I can advise else is examining the DoorTriggerSDK from this site. Maybe there are some hints in readme's or code comments.


Note: Log in to post. Create a new account here.