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
Multiple Issues Help Script
Icaab2607 Offline
Junior Member

Posts: 34
Threads: 13
Joined: Mar 2013
Reputation: 0
#1
Question  Script

Tell me,whereins fault of this script,on idea, should a player become active, and monster no active.
But of this, nothing happens:
void OnStart()
{
AddEntityCollideCallback("Player", "Grunt", "Grunt", true, 1);
}
void Grunt(string &in asParent, string &in asChild, int alState)
{
SetPlayerActive(false);
PlaySoundAtEntity("", "rnd2.snt", "Player", 0, false);  
SetEntityActive("servant_grunt_ragdoll_1", true);
StartPlayerLookAt("LOOKGRUNT", 1, 1, "");
AddTimer("", 4.0f, "stoplooking2");
}
void stoplooking2(string &in asParent, string &in asChild, int alState)
{
GiveSanityDamage(5.0f, true);
AddPropForce("servant_grunt_ragdoll_1", 5000.0f, 0.0f, 0.0f, "world");
StopPlayerLookAt();
SetPlayerActive(true);
SetEntityActive("servant_grunt_ragdoll_1", false);
PlaySoundAtEntity("", "close_door.snt", "Player", 0, false);
}
07-05-2013, 08:06 PM
Find


Messages In This Thread
Script - by Icaab2607 - 07-05-2013, 08:06 PM
RE: Script - by Kullin - 07-05-2013, 08:08 PM



Users browsing this thread: 1 Guest(s)