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
Unexplainable Error!
Verkehr Offline
Member

Posts: 60
Threads: 13
Joined: Oct 2016
Reputation: 1
#11
RE: Unexplainable Error!

I planned to use after the player leaves the area or enters while it´s 1 that it sets back to 1, but that´s the problem! I DO use the place where the player spawns, but the area doesn´t work at all, and I made an AddEntityCollideCallback function that adds the int. :/
11-17-2016, 08:34 PM
Find
Mudbill Offline
Muderator

Posts: 3,881
Threads: 59
Joined: Apr 2013
Reputation: 179
#12
RE: Unexplainable Error!

PHP Code: (Select All)
void note_room_1_1(string &in asEntity)
{
    
AddGlobalVarInt("key_1"1);
    if(
GetGlobalVarInt("sanity_1") == 1){
        
AddGlobalVarInt("sanity_action_1"1);    
    }
    else{
        
AddGlobalVarInt("sanity_off_1"1);
    }
    
AddDebugMessage("key_1: " GetGlobalVarInt("key_1")
    + 
", sanity_action_1: " GetGlobalVarInt("sanity_action_1"
    + 
", sanity_off_1: " GetGlobalVarInt("sanity_off_1"), false);


Try this and see what the values actually are.

(This post was last modified: 11-17-2016, 09:47 PM by Mudbill.)
11-17-2016, 09:46 PM
Find
Verkehr Offline
Member

Posts: 60
Threads: 13
Joined: Oct 2016
Reputation: 1
#13
RE: Unexplainable Error!

(11-17-2016, 09:46 PM)Mudbill Wrote:
PHP Code: (Select All)
void note_room_1_1(string &in asEntity)
{
    
AddGlobalVarInt("key_1"1);
    if(
GetGlobalVarInt("sanity_1") == 1){
        
AddGlobalVarInt("sanity_action_1"1);    
    }
    else{
        
AddGlobalVarInt("sanity_off_1"1);
    }
    
AddDebugMessage("key_1: " GetGlobalVarInt("key_1")
    + 
", sanity_action_1: " GetGlobalVarInt("sanity_action_1"
    + 
", sanity_off_1: " GetGlobalVarInt("sanity_off_1"), false);


Try this and see what the values actually are.

If you´re pointing on that I use the same technique on the 1st area, then I have to say you´re very smart. I doubt it will work at all, the area is glitched. :/ I will try to make it on INTERACT instead.

Finally, OnInteract fixed it!
(This post was last modified: 11-17-2016, 10:29 PM by Verkehr.)
11-17-2016, 10:11 PM
Find




Users browsing this thread: 1 Guest(s)