|
Registered User
|
Join Date: Jan 2004
Posts: 403
|
|
attachplayertoobj and setshape2?
I tried to make a Bridge but it wont work right.
I tried some things:
NPC Code:
attachplayertoobj 0,id;
attachplayertoobj 0,npcid;
attachplayertoobj 0,npcsid;
...
But setshape2 wont works right
i can walk above the whole bridge :/
the blocking tiles dont works.
NPC Code:
if(created){
setimg testbridge01.png; //IMG Datei der Brücke
setstring client.at,0;
detachplayer;
message #v(id),#v(npcid),#v(npcs.[id]),#v(npc.id);
}
if(playertouchsme&&strtofloat(#s(client.at))==0){
if(strequals(#m,swim)){
setshape2 14,9,{
22,22,22,22,22,22,22,22,22,22,22,22,22,22,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,
22,22,22,22,22,22,22,22,22,22,22,22,22,22,
22,22,22,22,22,22,22,22,22,22,22,22,22,22
};
}
else{
setshape2 14,9,{
22,22,22,22,22,22,22,22,22,22,22,22,22,22,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,
22,22,22,22,22,22,22,22,22,22,22,22,22,22,
22,22,22,22,22,22,22,22,22,22,22,22,22,22
};
attachplayertoobj 0,1;
setstring client.at,1;
setshape2 14,9,{
22,22,22,22,22,22,22,22,22,22,22,22,22,22,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,
22,22,22,22,22,22,22,22,22,22,22,22,22,22,
22,22,22,22,22,22,22,22,22,22,22,22,22,22
};
}
}
|
Last edited by projectigi; 06-06-2004 at 10:57 AM..
|