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
Certain Entities are unscriptable?
gbstrcl Offline
Junior Member

Posts: 3
Threads: 2
Joined: Apr 2020
Reputation: 0
#1
Certain Entities are unscriptable?

I do an interact callback between an in-game area script and a function that sets invisible the mesh of a book pile. thats what its supposed to do at least. But nothing happens, and there are no errors telling me what I could've done wrong. Ive quadruple checked all names and everything is consistent. Just the entity doesn't go anywhere, dissapear, or anything. Only the sound plays.

void OnStart()
{  
    SetEntityPlayerInteractCallback("ScriptInteract", "OnInteract", true);
}

void OnInteract(string &in asEntity)
{
    PlaySoundAtEntity("", "BookSlide.snt", "Player", 0, false);
    SetEntityPos("BookPile1", 3000, 3000, 3000);

//set entity pos was after I tried set mesh invisble and deactivate entity. Still nothing.



}


Attached Files
.jpg   Editor.JPG (Size: 107.96 KB / Downloads: 164)
(This post was last modified: 04-09-2020, 02:03 AM by gbstrcl.)
04-09-2020, 01:58 AM
Find


Messages In This Thread
Certain Entities are unscriptable? - by gbstrcl - 04-09-2020, 01:58 AM



Users browsing this thread: 1 Guest(s)