Page 1 of 1

Help Codding:

Posted: 12 Feb 2014, 16:37
by bamz0rz
Hey guise, this board seems to be better than dxalpha nowadays, so I need some help codding:

basically, does anyone know how to restart a player? Right now, when I call restartplayer, the log show that it finds a playerstart but the bool 'foundstart' which setlocation(Startspot), is false.

in any case, what happens when a player logins? What gets called for player restart? here is something else weird: my player is hidden, but even though I set the player to be bhidden=false, the player is still invisible. If i type 'walk' the player flashes visible for a second. Also, I noticed that if I change playerreplicationinfo.bisspectator = false, it doesn't seem to replicate until I restart?

please advise.

Re: Help Codding:

Posted: 12 Feb 2014, 16:41
by bamz0rz
Also, i force the player into a state 'playerspectating'. How can I get the player out of this state? Nothing seems to work, and when a player is in this state, its like a completely different class: the only function you can call from that player are limited to whats in the state.

and the unrealscript wikis are so unhelpful: they say just type gotoState('playerwalking'), guess wat? that doesn't do anything.

Re: Help Codding:

Posted: 12 Feb 2014, 20:53
by bamz0rz
ok i figured it out guise,

i had to call:

ServerRestartplayer()

Re: Help Codding:

Posted: 12 Feb 2014, 22:59
by bamz0rz
you're the man Bamz0rz! so much more helpful than nobody! we are not worthy of your codding skills!

Re: Help Codding:

Posted: 12 Feb 2014, 23:31
by [FGS]Chees
bamz0rz congrats with a conversation in forum with yourself, bro you nailed it :-D

Re: Help Codding:

Posted: 13 Feb 2014, 00:02
by bamz0rz
i'm not sure what you mean by yourself. i was simply conversing with my pawn, i'm the playerpawn, aka, the brains.