Posts: 2,671
Thanks: 62708 in 190 Posts
25 Achievements
Quote: Originally posted by skyhi14
Hmm, then How do I mod the constraints? Sorry if this is a stupid question, I'm kind of noob at modding...
|
Depends on the object and the interaction. You'll typically find the constraints as one of the first items in the XML for an interaction. They specify things such as the distance, facing and line of sight requirements for interacting with an object. Just to pull an example out of thin air, for Sim's viewing a garden plant at a festival (gardenPlant_View_Festivals), the constraints are
Code:
<L n="_constraints">
<U>
<L n="constraints">
<U>
<V n="value" t="circle">
<U n="circle">
<T n="ideal_radius">1</T>
<T n="ideal_radius_width">0.5</T>
<T n="radius">2</T>
</U>
</V>
</U>
</L>
</U>
<U>
<L n="constraints">
<U>
<V n="value" t="facing">
<U n="facing">
<T n="inner_radius">0</T>
<T n="range">90</T>
</U>
</V>
</U>
</L>
</U>
</L>
So to perform that action, the Sim must be within a circular radius of 2 from the object, and ideally somewhere between 0.5 and 1.5 distance. Additionally, the Sim needs to face the object with an angular range of 90, so somewhere between 45 degrees left or right of straight ahead. Any other parameters that are left out are set to their defaults, for instance the line of sight parameter for the circle defaults to true.
To know what all those parameters mean, and their defaults, you'll need to get the Tuning Description files. Reading those files can be painful, so you might want to also consider getting the
Tdesc browser I wrote.