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
Exploading barrel
teddan50 Offline
Junior Member

Posts: 15
Threads: 2
Joined: Dec 2011
Reputation: 0
#3
RE: Exploading barrel

(12-10-2011, 03:06 AM)Your Computer Wrote:
(12-09-2011, 11:00 PM)teddan50 Wrote: void Barrelscare(string &in asParent , string &in asChild , int alState)
{
SetEntityActive("barrel01_pieces_1" , true);
SetPropFade("barrel01_1", "", 0);
PlayGuiSound("break_wood_metal1", 1);


}


Replace with:

PHP Code: (Select All)
void Barrelscare(string &in asParent string &in asChild int alState

SetPropHealth("barrel01_1"0); 



(12-09-2011, 11:00 PM)teddan50 Wrote: ...and also, how do I set up messages on doors? I have managed to get a message on a locked leveldoor, but I want to show a different message when a key has been used. I also want to do the same with swingdoors.


http://www.youtube.com/watch?v=2BNFw7PR6...8&index=11

For swing doors just put a Sign area in front of the door.

(12-09-2011, 11:00 PM)teddan50 Wrote: Another problem I am also having is that I have created a "scare area" and it works fine, but when I go to a different map and go back again to the first map the "scare area" is still there. How do I make it disappear?


Do you have it set so that the callback is to be removed upon being triggered?




Thank you for your help!

I think that I have done so the callback is being removed, it works when I don't leave the map, but when I reenter the map it starts again.

AddEntityCollideCallback("Player", "ScriptArea_2", "CollideShock", true, 1);

Sure does "true" mean that the callback should be removed after being used once?
12-10-2011, 09:59 AM
Find


Messages In This Thread
Exploading barrel - by teddan50 - 12-09-2011, 11:00 PM
RE: Exploading barrel - by Your Computer - 12-10-2011, 03:06 AM
RE: Exploading barrel - by teddan50 - 12-10-2011, 09:59 AM
RE: Exploading barrel - by Your Computer - 12-10-2011, 11:09 AM
RE: Exploading barrel - by teddan50 - 12-10-2011, 05:15 PM
RE: Exploading barrel - by ferryadams10 - 12-10-2011, 05:20 PM
RE: Exploading barrel - by ferryadams10 - 12-10-2011, 11:12 AM
RE: Exploading barrel - by Your Computer - 12-11-2011, 05:53 AM



Users browsing this thread: 1 Guest(s)