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 [SOLVED] Using a Single Crowbar on Multiple Doors
AGP Offline
Senior Member

Posts: 448
Threads: 45
Joined: Dec 2012
Reputation: 23
#34
RE: [SOLVED] Using a Single Crowbar on Multiple Doors

(09-22-2014, 09:44 AM)Mudbill Wrote: Okay we need to do something more clever then.

Oh, and one more thing: If you're using a lot of things with for-loops, it might be better to simply use the same one, by doing so:

PHP Code: (Select All)
for(int i 1<= 4i++) {
    
AddUseItemCallback("crowbarondoors""Crowbar_1""Door_"+i"UseCrowbarOnDoor"false);
    
AddEntityCollideCallback("Joint_Door_"+i"AreaBreak_"+i"BreakDoor"true1);


For some reason, changing that made the crowbar not work at all. :/

EDIT: I need to learn to read first.... This is henceforth going to be known as the night of the facepalms! Just needed to change Crowbar_1 to crowbar.

*facepalm*

(This post was last modified: 09-22-2014, 09:52 AM by AGP.)
09-22-2014, 09:49 AM
Find


Messages In This Thread
RE: [SOLVED] Using a Single Crowbar on Multiple Doors - by AGP - 09-22-2014, 09:49 AM



Users browsing this thread: 1 Guest(s)