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
Reset puzzle
Mudbill Offline
Muderator

Posts: 3,881
Threads: 59
Joined: Apr 2013
Reputation: 179
#2
RE: Reset puzzle

In the callback for respawning, you must set values back to normal. You can kill the timer using RemoveTimer("internalname"); and you can re-enable the brute with SetEntityActive("brute", true);

If your puzzle uses variables, you must remember to set them to a working state.

You can maybe use CreateEntityAtArea to spawn items back, and use SetEntityActive on other entities to disable them as well as RemoveItem from the inventory.

(This post was last modified: 07-04-2014, 11:02 PM by Mudbill.)
07-04-2014, 11:00 PM
Find


Messages In This Thread
Reset puzzle - by Rowzter - 07-04-2014, 10:53 PM
RE: Reset puzzle - by Mudbill - 07-04-2014, 11:00 PM
RE: Reset puzzle - by The chaser - 07-05-2014, 12:30 AM



Users browsing this thread: 1 Guest(s)