Well, I have no idea how to script it, but 'm sure something can be done with the menu lua or something, one of the scripters might be able to help you there
One way I thought would be a nice way to do it would be to:
Fix the player movement so they could only turn, place one of each of the characters you would want to be choices spread out in front of the player start, change their names ifused field to level names, so for example three characters with ifused fields character1, character2 and character3, and add some nice scenery around, maybe some walls or something.
Then each of the characters would have a script that would detect if the is looking at them and offer an E to select prompt, when E is pressed the script would then check the ifused field and send you to the correct alternate level.
Not the simplest way, but it would be a nice 3d character menu system ...
... in fact it's given me some ideas for my own game.
With my limited knowledge of LUA, I've tried to knock up a basic script to move you to another level by activating an entity with E.
Theoretically, place an entity, putt the name of the level you want it to link to in the ifused field, then in the game activating the entity with E should send you to the level specified.
I'm not sure if it works at the moment as i'm at work and can't test.
function selectlevel_init(e)
end
function selectlevel_main(e)
if GetPlayerDistance(e) <= 80 then
if g_KeyPressE == 0 then
Prompt("Press E to Select")
end
if g_KeyPressE == 1 then
JumpToLevelIfUsed(e)
end
end
Any of you scriptheads out there able to tell me if this would work as specified? (a work at the moment so can't test)
If NO, can you tell me what's wrong with it and how to make it work?
If YES, could you tell me what I would need to add and where to make it so it only prompts to use when you're looking at it instead of when in range?
Also, how would display the name of the entity in a prompt? for example if I named the entity Peter, how would I make the "Press E to Select" prompt say "Press E to Select Peter"?
i7, NV960 4GB, 16GB memory, 2x 4TB Hybrid, Win10.
i5 , AMD 6770 1GB, 8GB memory, 512GB Generic SATAIII + 2TB Seagate Baracuda SATAIII, Win7.
i3, Radeon integrated graphics, 4GB memory, 512gB Generic SATAII, Win8.1.
Q6600, Intel integrated graphics, 2GB memory, 180GB Generic SATAII, WinXP.