Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Lycaon

Is this kind of "flashback" possible?

Recommended Posts

My idea is to make a moment in which you are taken to the past before the level starts, so you'll only have a pistol. Then, as the player gets to the original starting point, the game would come back to the present in the exact same place the player was before (although this is not necessary at all) with his weapons untouched. I was thinking of using a Hub structure and make 2 different maps, but is it possible this way? I mean, taking all weapons away and then giving them back just the way they were.

Share this post


Link to post

Yes, it should be possible using 2 maps in a HUB. You need an ACS script to Check for the player's weapons, number of ammo and health and possibly a backpack, keys and other inventory items. Store the values in global variables, and then take all stuff from the player (or downright clear it) and give him just the basic stuff upon entering the other map. When the flashback ends, give everything back to the player based on the variable values.

EDIT: Maybe it can be done without the LOADACS global thing if all scripts were in the 2nd "fake start" map.

Share this post


Link to post

Oh, I never used variables until now, will be a good oportunity to learn. Thank you very much for the links, a proper response as always!

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×