I've got a cap below where I'm trying to make two houses which you can enter. If you go into the one on the right and come back out, it puts you outside it, but if you go into the one on the left it goes back to the spawn, so I think I've done something wrong with the picking. Could anyone have a look? Is there a better way to do this?
Develop games in your browser. Powerful, performant & highly capable.
You need to change the condition in event 5 of the event sheet "Basic_Character":
+ System: Is global variable 'Spawn_Root' Equal to Door_Spawn.Value('PV_Spawn_Root')[/code:21pbmfff]
This looks correct, but it doesn't do any picking of the object "Door_Spawn", so what happens is the global is only compared to the first instance of "Door_Spawn".
The solution is to pretty much reverse the condition by comparing the "Door_Spawn" object's PV to the global:
[code:21pbmfff]+ Door_Spawn: Value 'PV_Spawn_Root' Equal to global('Spawn_Root')
This way the correct object is picked.