Need Script Help

Post » Thu Oct 14, 2010 6:30 pm

I am not even sure it can be done but if so it would be nice. Is it possible to make a door or destination location have a small random chance of teleporting the player character to another location? Somewhere like a new worldspace or interior.

If so what would be the best way to do this? I hope someone has an idea how it can be done. :)
User avatar
Laura
 
Posts: 3456
Joined: Sun Sep 10, 2006 7:11 am

Post » Thu Oct 14, 2010 9:54 pm

You can sort of fake it. Since you can activate a door remotely (i.e. DoorRef.Activate Player) from a script. You could place several teleport doors into the same location, then using a script on the 'real' door object, determine (randomly if you wish) which door to activate. This would have the effect of teleporting the player to a random location. Once you place all your doors in the cell and move the door markers where you want and finalize the navmesh (to create the teleport triangles), just move the 'invisible' doors below ground or behind a wall and check the "hidden from local map" flag to keep them from appearing on the player's local map.
User avatar
naana
 
Posts: 3362
Joined: Fri Dec 08, 2006 2:00 pm

Post » Thu Oct 14, 2010 12:13 pm

I do not think that would give the effect I want, but it is worth looking into. Anyway if it does not work well I have another idea how I can do it.

Thanks Pkleiss. :)
User avatar
LuCY sCoTT
 
Posts: 3410
Joined: Sun Feb 04, 2007 8:29 am


Return to Fallout 3