can you make it remove hostle, when you die it removes hostle if your hostle with anybody...
[snapback]15038[/snapback]
I don't really know what Mel means.. er...
Anyways.. Just add..
object oKiller = GetLastKiller(); <---- That goes on the top..
SetPCLike(oKiller ,oPC);
[snapback]15075[/snapback]
That post I did was just a little tip about a side effect of changing hostile settings.
Just try this: let someone attack something (melee, spell, doesn't matters) then while he's attacking, hostile/unhostile. You'll see that the other will stop attacking. Even won't be able to do anythung but moving/talking as long you keep going setting hostile/unhostile.
I just want to point out that if you let a script set hostile setting. Make sure you're not going to interrupt players on wrong moments. Because that may be something you don't want.
In case of a duel for example you could add a check if the player is in combat and make the script wait with changing the hostile setting till the player isn't in combat anymore.
Poeple somethimes use this effect to be irritating. They can make a other player stop all the time by spamming the like/dislike button in the playerlist. Because some tend to do that when they are banned to jail, it's better to cutscene them. Then they can't acces the player menu
I'm just giving a few notes/tips, they aren't anything critical for the main function of a respawn script, but they are usefull to know.
-Mel