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
How to activate a 'Puzzle completed' script
Tripication Offline
Member

Posts: 172
Threads: 19
Joined: Dec 2011
Reputation: 6
#2
RE: How to activate a 'Puzzle completed' script

(01-20-2012, 09:18 AM)Quotentote Wrote:
PHP Code: (Select All)
void OnStart()
{

AddEntityCollideCallback("book_01""bookarea_1""book1"true1);
AddEntityCollideCallback("book_02""bookarea_1""book2"true1);

///BOOKS
void book1(string &in asParentstring &in asChildint alState)
{
SetEntityActive("book_01"false);
SetEntityActive("book_001"true);
PlayGuiSound("impact_book_med1.ogg",10.0f);
}
void book2(string &in asParentstring &in asChildint alState)
{
SetEntityActive("book_02"false);
SetEntityActive("book_002"true);
PlayGuiSound("impact_book_med2.ogg",10.0f);


How do i activate the 'puzzle completed' script (like spawning a key or something)
the player has no regular order to do it (so he could do the book2 thing first, then book1)

greetings
Do you mean you want book 1 to be put in first, then book 2?

[Image: speedart__2___yoshimitsu_by_kamofudge-d4yo6kk.png]
01-20-2012, 09:20 AM
Find


Messages In This Thread
RE: How to activate a 'Puzzle completed' script - by Tripication - 01-20-2012, 09:20 AM



Users browsing this thread: 1 Guest(s)