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
Entity Spawn problem
ModestWalrus Offline
Junior Member

Posts: 26
Threads: 3
Joined: Jan 2012
Reputation: 0
#1
Entity Spawn problem

Im trying to make a statue spawn when player collides with "hallway1" but he spawns when player spawns, not when colliding.

Please help


void OnEnter ()
{
AddEntityCollideCallback("Player", "hallway1", "statuemanspawns", true, 1);
}
void statuemanspawns(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("statueman1", true);
PlaySoundAtEntity("", "react_breath.sfn", "Player", 0.5, false);
StartPlayerLookAt("statueman1", 15, 15, "");
AddTimer("", 1.0f, "Stoplooking");
}
void Stoplooking(string &in asTimer)
{
StopPlayerLookAt();
}
//-------------------------------------------------------
void OnLeave ()
{
}
02-13-2012, 05:50 AM
Website Find


Messages In This Thread
Entity Spawn problem - by ModestWalrus - 02-13-2012, 05:50 AM
RE: Entity Spawn problem - by flamez3 - 02-13-2012, 06:53 AM
RE: Entity Spawn problem - by Your Computer - 02-13-2012, 07:33 AM
RE: Entity Spawn problem - by ModestWalrus - 02-13-2012, 12:32 PM
RE: Entity Spawn problem - by flamez3 - 02-13-2012, 12:43 PM
RE: Entity Spawn problem - by Your Computer - 02-13-2012, 08:55 PM
RE: Entity Spawn problem - by ModestWalrus - 02-13-2012, 08:50 PM



Users browsing this thread: 1 Guest(s)