Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "inc_lua"
- //Adds oTarget as an associate to oMaster as type (ASSOCIATE_TYPE_*), if type is -1 the associate is instead removed
- void SetAssociate(object oMaster, object oTarget, int nAssociateType);
- void SetAssociate(object oMaster, object oTarget, int nAssociateType){
- ExecuteLuaString(oMaster, "nwn.SetAssociate(OBJECT_SELF,'"+ObjectToString(oTarget)+"',"+IntToString(nAssociateType)+");" );
- }
- void main()
- {
- object oPC = OBJECT_SELF;
- object oTarget = GetNearestCreature(CREATURE_TYPE_IS_ALIVE,TRUE,oPC);
- SetAssociate(oPC,oTarget,ASSOCIATE_TYPE_SUMMONED);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement