x


Problems with the triggers(not recognized)

In my script it has something easy like this:

var checktrigger = 0; function OnTriggerEnter(other : Collider){ //The other object is moving all the time and in a specific moment pass the gameObject checktrigger = 1; }

The object that has this script is with trigger and the other object do not has trigger but when play the game it never appears in the var checktrigger the number 1.

Please I need recomendations of what i have to do to work.

more ▼

asked Oct 23 '10 at 09:28 PM

user-4347 (google) gravatar image

user-4347 (google)
29 11 11 13

@unknown (google): Please stop flagging your posts as "Require Moderator Attention" just because you want an answer! This is not what flagging posts is for!

Oct 26 '10 at 12:58 PM runevision ♦♦
(comments are locked)
10|3000 characters needed characters left

1 answer: sort voted first

You have to add a Rigidbody to one of the objects for the OnTriggerEvent to fire.

more ▼

answered Oct 24 '10 at 08:27 AM

boymeetsrobot gravatar image

boymeetsrobot
587 7 10 22

Thanks it realy works

Oct 24 '10 at 02:04 PM user-4347 (google)
(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

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:

x2073
x1682
x980
x818
x334

asked: Oct 23 '10 at 09:28 PM

Seen: 1160 times

Last Updated: Oct 23 '10 at 09:28 PM