x


[Closed] How you change another script value smoothly on trigger

Hello friendlies

I do following but it has two problem, first it happens on any collider and I want that only when player trigger it, and more the change is instant and I want it to be smooth over time, how to fix it?

function OnTriggerEnter (other : Collider) {
var go = GameObject.FindWithTag("MainCamera");
go.GetComponent("SmoothFollow").distance = Mathf.SmoothStep(6, 20, 5);
}

Sorry for my English I use google translated

more ▼

asked Oct 17 '10 at 04:47 PM

xLangox gravatar image

xLangox
1 1 1 1

(comments are locked)
10|3000 characters needed characters left

The question has been closed Jun 26 '11 at 03:48 AM by Bravini for the following reason:

Other


0 answers: sort voted first

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x3014
x986
x810
x265
x208

asked: Oct 17 '10 at 04:47 PM

Seen: 1696 times

Last Updated: Oct 17 '10 at 04:47 PM