Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Cannot use item on area
Damascus Offline
Senior Member

Posts: 646
Threads: 118
Joined: Mar 2012
Reputation: 29
#11
RE: Cannot use item on area

Would you mind sending me a zip with the copper_tube entity? I think maybe I messed something up while I was creating a static version of the entity, and accidently saved it to the game's version.

It's still not working for me, and the only thing i can think of to make it not work is something to do with the copper_tube entity.

11-10-2012, 05:44 PM
Find
Your Computer Offline
SCAN ME!

Posts: 3,456
Threads: 32
Joined: Jul 2011
Reputation: 235
#12
RE: Cannot use item on area

It's easier if i just paste the XML that makes up the entity.

<Entity>
    <EditorSession>
        <Performance CamClipPlanes="0.050000 1000.000000" LightsActive="true" PSActive="true" ShowFog="true" ShowSkybox="true" WorldReflection="true" />
        <ViewportConfig BGColor="0.200000 0.200000 0.200000 1.000000" GAmbientLight="true" GPointLight="true" GridSnap="false" GridSnapSeparation="0.250000" SelectedViewport="3" UsingEnlargedViewport="true">
            <Viewport CameraPosition="0.000000 0.000000 100.000000" CameraTarget="0.000000 0.000000 0.000000" CameraZoom="0.000000" GridHeight="0.000000" GridPlane="2" Preset="0" RenderMode="1" ShowAxes="true" ShowGrid="true" UsingLTCam="true" />
            <Viewport CameraPosition="100.000000 0.000000 0.000000" CameraTarget="0.000000 0.000000 0.000000" CameraZoom="0.000000" GridHeight="0.000000" GridPlane="0" Preset="1" RenderMode="1" ShowAxes="true" ShowGrid="true" UsingLTCam="true" />
            <Viewport CameraPosition="0.000000 100.000000 0.000000" CameraTarget="0.000000 0.000000 0.000000" CameraZoom="0.000000" GridHeight="0.000000" GridPlane="1" Preset="2" RenderMode="1" ShowAxes="true" ShowGrid="true" UsingLTCam="true" />
            <Viewport CameraPosition="0.379651 0.131578 -0.088736" CameraTarget="0.000000 0.000000 0.000000" CameraZoom="4.800001" GridHeight="0.000000" GridPlane="1" Preset="3" RenderMode="0" ShowAxes="true" ShowGrid="true" UsingLTCam="true" />
        </ViewportConfig>
    </EditorSession>
    <UserDefinedVariables EntitySubType="Puzzle" EntityType="Item">
        <Var Name="Health" Value="100" />
        <Var Name="Toughness" Value="0" />
        <Var Name="MaxFocusDistance" Value="0" />
        <Var Name="MainPhysicsBody" Value="" />
        <Var Name="ShowMesh" Value="true" />
        <Var Name="DissolveOnDestruction" Value="false" />
        <Var Name="DissolveTime" Value="1.0" />
        <Var Name="EffectsOnSound" Value="" />
        <Var Name="EffectsOffSound" Value="" />
        <Var Name="EffectsOnTime" Value="1" />
        <Var Name="EffectsOffTime" Value="1" />
        <Var Name="EffectsOffLightColor" Value="0 0 0 0" />
        <Var Name="EffectsOffLightRadius" Value="-1" />
        <Var Name="StaticMoveCheckCollision" Value="false" />
        <Var Name="StaticMoveStartSound" Value="" />
        <Var Name="StaticMoveStopSound" Value="" />
        <Var Name="StaticMoveLoopSound" Value="" />
        <Var Name="RandomizeAnimationStart" Value="true" />
        <Var Name="SubItemTypeName" Value="CopperTube" />
        <Var Name="ImageFile" Value="copper_tube.tga" />
        <Var Name="PickSound" Value="Generic" />
        <Var Name="TempVar" Value="0" />
    </UserDefinedVariables>
    <ModelData Name="">
        <Entities />
        <Mesh Filename="entities/item_puzzle/copper_tube/copper_tube.dae">
            <SubMesh Active="true" GroupID="0" ID="0" Name="pPipe1" Rotation="0.000000 0.000000 0.000000" Scale="1.100000 0.300000 0.300000" SubMeshID="0" Tag="" Type="13" WorldPos="0.000000 0.000000 0.000000" />
        </Mesh>
        <Bones />
        <Shapes>
            <BodyShape Active="true" GroupID="0" ID="3" Name="Shape_1" RelativeRotation="0.000000 0.000000 0.000000" RelativeScale="0.241967 0.241968 0.241967" RelativeTranslation="-0.000000 0.000000 -0.000000" Rotation="0.000000 0.000000 0.000000" Scale="0.323064 0.036295 0.042858" ShapeType="Box" ShapeTypeID="0" Tag="" Type="10" WorldPos="-0.004107 0.000000 0.002570" />
        </Shapes>
        <Bodies>
            <Body Active="true" AngularDamping="0.000000" BlocksSound="false" BuoyancyDensityMul="1.000000" CanAttachCharacter="true" CollideCharacter="true" CollideNonCharacter="true" ContinuousCollision="true" GroupID="0" HasGravity="true" ID="5" LinearDamping="0.000000" Mass="0.000000" Material="Metal" MaxAngularSpeed="0.000000" MaxLinearSpeed="0.000000" Name="Body_1" PushedByCharacterGravity="true" Rotation="0.000000 0.000000 0.000000" Scale="1.335155 0.150000 0.177125" Tag="" Type="11" UseSurfaceEffects="true" Volatile="false" WorldPos="-0.004107 0.000000 0.002570">
                <Shape ID="3" />
                <Children>
                    <Child ID="0" />
                </Children>
            </Body>
        </Bodies>
        <Joints />
    </ModelData>
</Entity>

Tutorials: From Noob to Pro
11-10-2012, 05:49 PM
Website Find
The chaser Offline
Posting Freak

Posts: 2,486
Threads: 76
Joined: Jun 2012
Reputation: 113
#13
RE: Cannot use item on area

(11-10-2012, 05:29 PM)Damascus Wrote: Like I said before, that only works when the player interacts with the area, not when an item is used on it.
Yes, but it is "ItemInteraction" and the player interacts.
I didn't had much hope, though.

THE OTHERWORLD (WIP)
[Image: k6vbdhu]

Aculy iz dolan.
11-10-2012, 06:16 PM
Find
Damascus Offline
Senior Member

Posts: 646
Threads: 118
Joined: Mar 2012
Reputation: 29
#14
RE: Cannot use item on area

Oh my god.

This whole time I had the script area around the wrong statue.

[Image: tumblr_m54wprdjG01rtcfaqo1_500.gif]

Somebody just kill me now.

11-10-2012, 06:57 PM
Find
The chaser Offline
Posting Freak

Posts: 2,486
Threads: 76
Joined: Jun 2012
Reputation: 113
#15
RE: Cannot use item on area

(11-10-2012, 06:57 PM)Damascus Wrote: Oh my god.

This whole time I had the script area around the wrong statue.

[Image: tumblr_m54wprdjG01rtcfaqo1_500.gif]

Somebody just kill me now.
[Image: PistolaWildeySurvivor.jpg]


Done.

THE OTHERWORLD (WIP)
[Image: k6vbdhu]

Aculy iz dolan.
11-10-2012, 07:03 PM
Find




Users browsing this thread: 1 Guest(s)