Content: Slate Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate Marble
Background: Slate Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate Marble
Pattern: Blank Waves Notes Sharp Wood Rockface Leather Honey Vertical Triangles
Welcome to Xbox Chaos: Modding Evolved

Register now to gain access to all of our features. Once registered and logged in, you will be able to contribute to this site by submitting your own content or replying to existing content. You'll be able to customize your profile, receive reputation points as a reward for submitting content, while also communicating with other members via your own private inbox, plus much more! This message will be removed once you have signed in.

Sign in to follow this  
Followers 0
oVR

Retail
Object Scaling

7 posts in this topic

This is from Abandoned Cashew's Plague gametype. All credit goes to him and Thunder who worked on that gametype together.

 

User data sets scale of object x5%

 

Only works on objects set to normal physics

 

Create/Add to script (after Object Filters, before Triggers):

<ObjectVariables>  <Numeric>    <Var networkState="HighPriority" name="ObjectNumeric0" varRefType="Int16">0</Var>  </Numeric></ObjectVariables>
Add to Strings:

<String name="object_scale">  <String>object_scale</String></String>
Add to Object Filters:

<Filter labelIndex="object_scale" name="object_scale" />
Create Trigger: 

 

<Trigger trigType="Local" name="LocalTrigger">  <Elements>    <E type="Action" name="ActivateTrigger">      <Param type="TriggerReference">        <T type="Trigger" trigType="Subroutine" execMode="OnObjectFilter" name="Trigger46_Subroutine47" objectFilter="object_scale">          <Elements>            <E type="Action" name="VariableOperation">              <Param type="VarReference" varRefKind="Custom" varRefType="Object.NumericVar" dataType="Iterator.Object">ObjectNumeric0</Param>              <Param type="VarReference" varRefKind="Custom" varRefType="UserData" dataType="Iterator.Object" />              <Param type="OperationType">Set</Param>            </E>            <E type="Condition" name="Comparison">              <Param type="VarReference" varRefKind="Custom" varRefType="Object.NumericVar" dataType="Iterator.Object">ObjectNumeric0</Param>              <Param type="VarReference" varRefKind="Custom" varRefType="Int16">0</Param>              <Param type="ComparisonType">GreaterThan</Param>            </E>            <E type="Action" name="VariableOperation">              <Param type="VarReference" varRefKind="Custom" varRefType="Object.NumericVar" dataType="Iterator.Object">ObjectNumeric0</Param>              <Param type="VarReference" varRefKind="Custom" varRefType="Int16">5</Param>              <Param type="OperationType">Multiply</Param>            </E>            <E type="Action" name="ObjectScale">              <Param type="ObjectReference" varRefType="ExplicitObjectType" dataType="Iterator.Object" />              <Param type="CustomReference" varRefType="Object.NumericVar" dataType="Iterator.Object">ObjectNumeric0</Param>            </E>          </Elements>        </T>      </Param>    </E>  </Elements> </Trigger>

Share this post


Link to post
Share on other sites

Actually that numeric 1 isn't needed :smile:

Oh! also if you want structure objects to be scaled for non-host as well, that subroutine needs to be in the LocalTrigger.

Structure objects don't scale for non-host after the first round though.

Edited by AbandonedCashew
oVR likes this

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0