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
Script Help Scripting Player reaction
Romulator Offline
Not Tech Support ;-)

Posts: 3,628
Threads: 63
Joined: Jan 2013
Reputation: 195
#3
RE: Scripting Player reaction

goodcap ninja'd me :p oh well, I'll leave my post here :3

SetEntityPlayerInteractCallback(); is what I believe you'll want. Don't know if you'll need to use an if-then-else conditional, but something like this should work:

PHP Code: (Select All)
void KeyPickup(string &in asEntity)
{
    if(
asType == "OnPickup")
    {
    
SetEntityActive("Body"true);
    
//Player Reaction Scripting
    
}


If the body pops up "too" instantly, add a timer that triggers your script about 0.08f after picking up the note. Do so by scripting an AddTimer inside the if's {} code block, then script the sequence in the void <Timer> code block. Smile

Discord: Romulator#0001
[Image: 3f6f01a904.png]
(This post was last modified: 05-24-2016, 04:01 PM by Romulator.)
05-23-2016, 10:10 PM
Find


Messages In This Thread
Scripting Player reaction - by 3gamers - 05-23-2016, 09:06 PM
RE: Scripting Player reaction - by goodcap - 05-23-2016, 10:08 PM
RE: Scripting Player reaction - by Romulator - 05-23-2016, 10:10 PM
RE: Scripting Player reaction - by Darkfire - 05-24-2016, 03:11 PM



Users browsing this thread: 1 Guest(s)