May 23, 2012, 05:04:48 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Please report any bugs or issues that you might be encountering with the Beta in the Support System so that we can better keep track of any oustanding issues that may come up.

GameCore Support System
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: My player can't PICK UP  (Read 410 times)
Warchief
Newbie
*
Posts: 5


View Profile
« on: January 06, 2011, 11:54:58 AM »

I try to do follow Tutorial of StoneOfKaflinia in "InteractiveFramework-IntroductionTutorial.exe"

So I copy script from "Player" object in StoneOfKaflinaia week5 to my "player" object and edit it

Code:
OPRP
// -----------------------------------
//       [url=http://www.3Dgamedesign.co.uk]www.3Dgamedesign.co.uk[/url]
//
// OBJECT: Masked Character
// LIBARY: Characters/Player
// VERSION: 1.1
// DATE:    6th Sept 2008
// -----------------------------------

ControllerType Scripted
ControllerSetting ScriptFile ../../Interactive/InteractivePlayer.gsl
//ControllerSetting ScriptFile playercharacter.gsl


ControllerSetting WalkSpeed 2.5
ControllerSetting RunSpeed 6.5
ControllerSetting StunTime 0.25
ControllerSetting CameraMode FirstPerson
ControllerSetting AllowViewChange true

CastStencilShadow 1

LoadObject Player.fbx
ObjectName Base
LoadAnimation Idle idle.fbx
LoadAnimation Walk walk.FBX
LoadAnimation Run run.FBX

ObjectScale 1.66 1.66 1.66
ObjectPosition 0 0 0.3

LookAtCenter 0 1.555 -0.04

AddCollision base
CollisionType Box
CollisionBoxSize 0.818000 1.897000 0.806000
CollisionCenter 0.051000 0.530000 0.200000
CollisionTransformIndependently 0
CollisionMass 65
CollisionMassOffset 0.000000 0.000000 0.000000
CollisionFriction 0
CollisionBouncyness 0
CollisionBounceVelocity 0
CollisionGravityEnabled 1
CollisionBuoyancy 0.1

AddMotion IdleMotion
MotionAnim Idle
MotionSelectVar Velocity
MotionSelectMax 0.0
MotionFadeInTime 0.5

AddMotion WalkMotion
MotionAnim Walk
MotionScalarVar Velocity
MotionScalarRef 3.0
MotionSelectVar Velocity
MotionSelectMin 0.0
MotionSelectMax 3.0
MotionFadeInTime 0.5

AddMotion RunMotion
MotionAnim Run
MotionScalarVar Velocity
MotionScalarRef 8.5
MotionSelectVar Velocity
MotionSelectMin 3.0
MotionFadeInTime 0.5

AddMotion Move
MotionChild IdleMotion
MotionChild WalkMotion
MotionChild RunMotion

#########################


And I add script from Tutorial of StoneOfKaflinia in "InteractiveFramework-IntroductionTutorial.exe" into my "Bucket"

Code:
OPRP
//------------------------------------------------------------
// [url=http://www.3Dgamedesign.co.uk]www.3Dgamedesign.co.uk[/url]
//
// OBJECT: Bucket
// LIBARY: Props/Bucket
// VERSION: 1.0
// DATE:    1st July 2007
//------------------------------------------------------------

//init script
ControllerType Scripted
ControllerSetting ScriptFile ../../Interactive/Interactive.gsl

//Use as Pickup
ControllerSetting UseAsPickup true
ControllerSetting MessageOnProximity "Empty Bucket"

LoadObject Bucket.obj

AddCollision Base
CollisionType BoundingBox
CollisionMass 50
CollisionBouncyness 0
CollisionBounceVelocity 0
CollisionFriction 50

CastStencilShadow 1



The result is my "Bucket" display only "Empty Bucket", but no white cycle on my "Bucket" when I look at it.
I also can't pick up my "Bucket", when I press tab button my "Bucket" will disappear.

Can anyone help me please?
Logged
LutinMalefique
Full Member
***
Posts: 146



View Profile WWW
« Reply #1 on: January 06, 2011, 01:11:33 PM »

do you set up the "input box size" of the pickup object?
Logged

http://lutinmalefique.wordpress.com/
"Just remember: a damn game can be played, and if you have not created something that can be played, it's not a damn game!" Derek Yu
Warchief
Newbie
*
Posts: 5


View Profile
« Reply #2 on: January 06, 2011, 02:21:00 PM »

do you set up the "input box size" of the pickup object?

Where is it?
I want to pick up "Bucket".
"pickup object" is "Bucket", isn't it?
Logged
Warchief
Newbie
*
Posts: 5


View Profile
« Reply #3 on: January 06, 2011, 02:42:54 PM »

do you set up the "input box size" of the pickup object?

Where is it?
I want to pick up "Bucket".
"pickup object" is "Bucket", isn't it?


I recently added

Code:
ControllerInputBoxSize 3.720000 2.230000 2.520000

But the result is the same. Nothing changed.
Logged
pixel_legolas
Hero Member
*****
Posts: 786


View Profile
« Reply #4 on: January 08, 2011, 08:59:50 PM »

have you added the other objects? I know there are some more objects that you must place in the scene that handles all scripts from the template
Logged
Pages: [1]
  Print  
 
Jump to:  

 
Powered by MySQL Powered by PHP bluBlur Skin © 2006, hbSkins
Powered by SMF 1.1.14 | SMF © 2006-2011, Simple Machines LLC
Valid XHTML 1.0! Valid CSS!