dean
New Member
Posts: 5
Posts: 5
|
Post by dean on Jul 10, 2015 2:55:21 GMT
Hi Guys,
Still getting my head around CGK but awesome product!!
I notice then when my player dies it gets re-spawned at the same location of it's death... how do I get it to re-spawn at a specific location?
Thanks Dean
|
|
|
Post by DarkTonic Dev on Jul 10, 2015 4:31:43 GMT
Just use the Killable property "RespawnPosition" to whatever Vector3 you want, like when you get to a new save point. That is set to spawn position when it spawns but never updates otherwise.
|
|
dean
New Member
Posts: 5
Posts: 5
|
Post by dean on Jul 10, 2015 12:02:24 GMT
Thanks but where do I find the Respawn Position property? I had a look through the Killable script properties but can't seem to find it. I would have thought it would be in Respawn Settings & Events.
Dean
|
|
|
Post by DarkTonic Dev on Jul 10, 2015 15:14:20 GMT
Thanks but where do I find the Respawn Position property? I had a look through the Killable script properties but can't seem to find it. I would have thought it would be in Respawn Settings & Events. Dean You have to set it by code. It's not shown in the Inspector.
|
|
dean
New Member
Posts: 5
Posts: 5
|
Post by dean on Jul 11, 2015 0:29:20 GMT
I found an easier way, not sure if it's right or not but I added the PlayerSpawner script to my player and that exposes the respawn position... works like a charm  Thanks for the help.
|
|
|
Post by DarkTonic Dev on Jul 11, 2015 0:38:39 GMT
Yeah that's using the same sort of thing.
|
|