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
area problem
User01 Offline
Member

Posts: 97
Threads: 30
Joined: Feb 2013
Reputation: 0
#1
area problem

I want to make two messages and the first message should never seen again, while only the second message should be shown after entering an area, which is inactive now

The code:

PHP Code: (Select All)
void OnStart()
{
AddEntityCollideCallback("Player" "Area1" "A" true 1);
AddEntityCollideCallback("Player" "Area2" "C" true 1);
}


void A(string &in asParentstring &in asChildint alState)
{
    
SetEntityActive("object"true);
    
SetMoveObjectState("object"1.0);
    
PlaySoundAtEntity("""sound.snt""object"1.5ffalse);
    
SetMessage("Message""SampleText"4);
    
AddTimer(""4"Hand2");
}
    
void B(string &in asParentstring &in asChildint alState)    
{
     
SetEntityActive("Area2"true);
}

void C(string &in asParentstring &in asChildint alState)
{
     
PlaySoundAtEntity("""Sound.ogg""object"1.5f
     
SetMessage("Message2""SampleText"3);


but somehow the void C part is just ignoring. Why?
(This post was last modified: 03-23-2013, 02:08 AM by plutomaniac.)
03-03-2013, 09:47 PM
Find


Messages In This Thread
area problem - by User01 - 03-03-2013, 09:47 PM
RE: area problem - by No Author - 03-03-2013, 11:59 PM
RE: area problem - by User01 - 03-04-2013, 12:58 AM
RE: area problem - by Your Computer - 03-04-2013, 01:33 AM
RE: area problem - by User01 - 03-04-2013, 02:33 AM
RE: area problem - by ExpectedIdentifier - 03-04-2013, 02:50 AM



Users browsing this thread: 1 Guest(s)