Hildagarn
Member
- Reaction score
- 20
I mean this thing
JASS:
function InitTrig_IndieSummon takes nothing returns nothing
endfunction
//##Start##
//**************************************************************************************************
//*
//* IndieSummons (header functions)
//* ¯¯¯¯¯¯¯¯¯¯¯¯
//* To implement these functions, you must select the contents of this trigger starting
//* with the //##Start## and finishing with the //##End##, and copy that TO YOUR MAP's
//* CUSTOM SCRIPT SECTION, (it is at the top of the trigger list in the trigger editor)
//*
//* DON'T JUST COPY THE TRIGGER; copy this to the custom script section
//*
//* AFTER copying this function to custom script section, copy the next trigger to your map
//*
//**************************************************************************************************
//=================================================================================================
//
// <a href="http://www.wc3jass.com" target="_blank" class="link link--external" rel="nofollow ugc noopener">http://www.wc3jass.com</a> : The place with tons of JASS scripts
//
//=================================================================================================
function IndieSummon_SetMaster takes unit summon, unit master returns nothing
local unit a=bj_ghoul[0]
local string k=GetAttachmentTable(summon)
if (HaveStoredInteger(CSCache(),"[IndieSummons]",k)) then
call SetTableObject("[IndieSummons]",k,master)
else
call SetTableObject("[IndieSummons]",k,master)
set bj_ghoul[0]=summon
call ExecuteFunc("IndieSummon_loop")
set bj_ghoul[0]=a
endif
set a=null
endfunction
function IndieSummon_GetMaster takes unit summon returns unit
return GetStoredInteger(CSCache(),"[IndieSummons]",GetAttachmentTable(summon))
return null
endfunction
function IndieSummon_StopAI takes unit summon returns nothing
call FlushStoredInteger(CSCache(),"[IndieSummons]",GetAttachmentTable(summon))
endfunction
//##End##