Niborius on 31/7/2016 at 07:29
Just a quick question, is it possible to make more than 1 spawn point for Garrett, so that when the mission starts, one spawn point is randomly chosen each time?
Thanks in advance!
LarryG on 31/7/2016 at 07:41
tnhScript • RandomStartingPoint
Quote:
RandomStartingPointMoves the starting point to a randomly-selected location before the Player object is created. A single starting point is created as normal. From that point, create ScriptParams links to markers at the other locations. One of the links can be to the actual starting point to consider its current position as well. Each ScriptParams link has the data Startdiff, where diff is the difficulty levels that the link is valid on. 0 is easy, 2 is hard, 012 will work on all difficulty levels. When Sim starts, the starting point will be teleported to the destination of one of the links.
nicked on 31/7/2016 at 08:36
It won't be random, but you can set up three different ones and use Difficulty > Destroy, so that the player starts in a different place depending on the difficulty level they select.
Otherwise, you could do it ingame by starting in a blue room and using... some NVScript that I can't remember right now but can do randomness, to change where the player is teleported from the blue room.
FireMage on 31/7/2016 at 08:45
I did this in my mission Wooden Box but it was actually a teleportation of the player at the beginning of the mission.
I used a custom script I made in Lua which works at the beginning of the game like a dice that will trig a different event depending on the result.
In the link you gave Yandros gave another method with NVScripts to make a result similar to mine. ;)
It is true it's somekind of a "fake" random starting point but the wanted result is set! :D
The player will just have a 1/2 sec to see the "True place" where the starting point is before being teleported to another place...
As Yandros said in the thread you have just linked, the good idea would be to put the true starting in a black room then let the randomization teleporting you in the game! :)
Niborius on 4/8/2016 at 08:33
Thank you guys, definitely a great help.
Good to know there's always a very talented community I can rely on just in case I can't figure something out :)