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
WHAT IS WRONG?!!!!!!!!!!!!!
Mudbill Offline
Muderator

Posts: 3,881
Threads: 59
Joined: Apr 2013
Reputation: 179
#12
RE: WHAT IS WRONG?!!!!!!!!!!!!!

You can use a CheckPoint and then in the asCallback (which is made by just adding a void Respawn() if you name it Respawn), you can reset the monster by reactivating it. SetEntityActive("MonsterName", true); will re-enable the monster after you respawn, and it should be re-enabled from its original location. If you use any variables, you can reset those by just setting them back to the initial value.

Whatever you put in OnStart will not happen again when you respawn or re-enter the level. You can, however, add all these checks to OnEnter (which it kinda looks like you've done already) and have them re-execute by reloading the map. I'd prefer to reset the level as much as possible without loading another map, but if you want, you can reload it.

In the CheckPoint callback, do a ChangeMap script to a small and empty map that just simply has a ChangeMap within its OnEnter block to return you to the previous level. It's a bit awkward perhaps to change levels twice in a row, but it should reset mostly anything in the map (except things that use FullGameSave).

(This post was last modified: 06-07-2014, 05:58 PM by Mudbill.)
06-07-2014, 05:58 PM
Find


Messages In This Thread
WHAT IS WRONG?!!!!!!!!!!!!! - by ProyectV - 06-06-2014, 02:31 AM
RE: WHAT IS WRONG?!!!!!!!!!!!!! - by Daemian - 06-06-2014, 03:59 AM
RE: WHAT IS WRONG?!!!!!!!!!!!!! - by Romulator - 06-06-2014, 07:15 AM
RE: WHAT IS WRONG?!!!!!!!!!!!!! - by Mudbill - 06-06-2014, 01:11 PM
RE: WHAT IS WRONG?!!!!!!!!!!!!! - by ProyectV - 06-07-2014, 02:07 AM
RE: WHAT IS WRONG?!!!!!!!!!!!!! - by ProyectV - 06-07-2014, 03:30 AM
RE: WHAT IS WRONG?!!!!!!!!!!!!! - by Mudbill - 06-07-2014, 12:36 PM
RE: WHAT IS WRONG?!!!!!!!!!!!!! - by ProyectV - 06-07-2014, 03:41 PM
RE: WHAT IS WRONG?!!!!!!!!!!!!! - by Mudbill - 06-07-2014, 05:58 PM



Users browsing this thread: 1 Guest(s)