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
What's wrong with my script?
Mudbill Offline
Muderator

Posts: 3,881
Threads: 59
Joined: Apr 2013
Reputation: 179
#2
RE: What's wrong with my script?

What happens here is that you have the check for the collision from the start. This check it also removed after first execution, therefore it does not happen again if you've already stepped into that area before you had the crowbar, even if you do have it later.

One thing you can do instead of checking for the playing having the crowbar, is to just add the check after you pick it up. Leave the area active and give the collide callback to the PickUp function of the crowbar, and it will only happen after you pick it up.

Just wanna point out that you do not need ".ent" in your callback internal name. That name has nothing to do with any files. I don't think it affects it much but you never know.

PS: This thread will probably be moved to Development Support soon.

Wha-cha! Ninja!

(This post was last modified: 03-16-2014, 09:34 PM by Mudbill.)
03-16-2014, 09:32 PM
Find


Messages In This Thread
What's wrong with my script? - by physcostealth - 03-16-2014, 09:18 PM
RE: What's wrong with my script? - by Mudbill - 03-16-2014, 09:32 PM
RE: What's wrong with my script? - by plutomaniac - 03-17-2014, 12:03 AM



Users browsing this thread: 5 Guest(s)