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
Script Help Callback func doesn't get called after enemy leaves area
Adny Offline
Posting Freak

Posts: 1,766
Threads: 6
Joined: Mar 2012
Reputation: 173
#11
RE: Callback func doesn't get called after enemy leaves area

(05-24-2012, 03:49 AM)FragdaddyXXL Wrote: FIGURED OUT THAT PROBLEM!!
When I was getting the substring, I miscounted the amount of numbers I needed to skip. I had it set to 11, when it should have been 10.

I'm still worried tho. It gets 2 characters within the string, which would work no problem with "block_box_13", but I'm not sure if it will work for "block_box_1", or any other number 1-9.
would using 01, 02, 03, etc be compatible with the script?

I rate it 3 memes.
05-24-2012, 04:04 AM
Find
FragdaddyXXL Offline
Member

Posts: 136
Threads: 20
Joined: Apr 2012
Reputation: 7
#12
RE: Callback func doesn't get called after enemy leaves area

It's possible, but it'd be kinda shoddy. I thought about it. When I initialize the callbacks OnStart, i use a loop. I'll have to do a check to see if the number is below 10, if it is, add a "0" first, then add the number. If I run into an issue, then I'll have to go with that.

Dark Seclusion Here
05-24-2012, 05:02 AM
Find




Users browsing this thread: 1 Guest(s)