When the player creates it, I said:
with instance_create(obj_bulletp)
{
if other.b=1
{
playerId=obj_pone.id;
otherId=obj_ptwo.id;
}
if other.b=2
{
playerId=obj_pone.id;
otherId=obj_pone.id;
}}Then, in the create event of the bullet object:
type=playerId.type; type2=otherId.type;
I then did a switch statement for type in the create event, after the above code.
This doesn't work, however. I ran a debug mode, and the bullets were becoming the correct type. However the switch statement always returned 0, causing all of the bullets to do the default event.
Any help?











