|
Post by ranjid on Aug 16, 2018 23:34:42 GMT 1
Right now I try to make Ally in a SP map.
I checked out that 2 thread:
plus this 1 pages:
My script for have Ally on SP map look like that:
function Init() ChangePlayer(4998, 2); ------4998 ScriptID, 2 - Player Suicide(); end;
I used that one too:
function Init() ChangePlayer(4998, 2); ------4998 - ScriptID 2 - Side Suicide(); end;
Both do not work. I tested it more as 15 times with different changes on the script and ingame with the Script ID and diplomatic. I really find no wrong stuff inside my script after 2 hours.
|
|
|
Post by Quintaxel on Aug 17, 2018 6:51:40 GMT 1
ranjid , don't use Suicide () in function Init()
Make sure that the ScriptID has been assigned to a unit. This should work.
---- F.U.N.C.T.I.O.N.S --- function ChangeSides ()
DisplayTrace ("Changing the party from unit with ScriptID 4998 to neutral");
ChangePlayer (4998,2); --Changes party of player with ScriptID 4998 Suicide();
end;
---- I.N.I.T.----
function Init()
RunScript ("ChangeSides",30000);
end;
Edit: Player party 2 is neutral. Units of party 2 are not allies.
|
|
|
Post by ranjid on Aug 17, 2018 9:32:13 GMT 1
Thanks Quintaxel! I fixed the issue that night and I was to tired to tell the issue is fixed. ^^ Thank you very much! I will show later my version.
|
|