shooter game problems

Posted by TypicalAndy
basically, I made a rocket launcher, when the rocket hits the other player the self player destroys and then the other one too, then they both are stuck in the air....

Replies (5)

Last message on 28 Jul 2018

Size43 (Administrator) on 18 Jul 2018, 23:49:54
What does your code look like?
TypicalAndy (Topicstarter) on 18 Jul 2018, 23:55:20
in the PlayerObject theres a Collide event for the bullet,

Delete Instance Self
Create RespawnSystem
the RespawnSystem has a Alarm for 3 Seconds
Create Player Object at x,y

those are blocks By the way...
Size43 (Administrator) on 20 Jul 2018, 13:06:26
Re-reading your original post, I just need to clarify something: is the issue that both the self and other player get destroyed, or that the players are both stuck in the air?
TypicalAndy (Topicstarter) on 26 Jul 2018, 16:44:17
both, when you kill a player every player object gets destroyed then they are stuck in the air.
Size43 (Administrator) on 28 Jul 2018, 16:45:24
Please double-check that you don't have accidentially set any block to operate on all obj_player / obj_other_player objects instead of self or other.

Secondly, do you have any collision code in the bullet or the other player object? If there's a bit of code that only destroys the obj_player object, but runs on all clients it will destroy all objects anyways.