The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



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
Quotentote Offline
Member

Posts: 118
Threads: 23
Joined: Dec 2011
Reputation: 11
#1
How to activate a 'Puzzle completed' script

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
(This post was last modified: 01-20-2012, 09:50 AM by Quotentote.)
01-20-2012, 09:18 AM
Find


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



Users browsing this thread: 1 Guest(s)