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 Triggers not resetting
Apjjm Offline
Is easy to say

Posts: 496
Threads: 18
Joined: Apr 2011
Reputation: 52
#4
RE: Triggers not resetting

It appears you are deleting your callbacks on collision instead of de-activating the areas - so you will need to re-add them. Your checkpoint function should look as follows:

void BridgeDeath(string &in asName, int alCount)
{
        AddEntityCollideCallback("Player", "SprintDisable", "NoSprint", true, 1);
        AddEntityCollideCallback("Player", "SprintEnable", "Sprint", true, 1);
        AddEntityCollideCallback("Player", "StandKill", "KillStand", true, 1);
}

Also note that adding your callbacks in OnEnter will mean they are added every time the map is entered. OnStart is usually a better place for adding the initial callbacks.

Edit: Forum formatting Tongue
(This post was last modified: 04-08-2012, 09:17 PM by Apjjm.)
04-08-2012, 09:17 PM
Find


Messages In This Thread
Triggers not resetting - by JetlinerX - 04-08-2012, 09:00 PM
RE: Triggers not resetting - by Apjjm - 04-08-2012, 09:08 PM
RE: Triggers not resetting - by JetlinerX - 04-08-2012, 09:10 PM
RE: Triggers not resetting - by Apjjm - 04-08-2012, 09:17 PM
RE: Triggers not resetting - by JetlinerX - 04-08-2012, 09:27 PM



Users browsing this thread: 2 Guest(s)