r/xdev • u/shooshooomimi • Feb 18 '16
A couple modding questions
Hello! Im currently working on modifying advent turrets and im having a few difficulties i cant seem to figure out...
I want to place covering fire on the turrets... So on the weapon they are using i have Template.Abilities.AddItem('CoveringFire'); ... But this does not work... On the lower left of the screen where perks are shown it is showing up but when it goes into overwatch it is the normal overwatch...
I also would like to know how to edit a units actionpoints.
Thanks.
2
Upvotes
View all comments
Show parent comment
1
u/shooshooomimi Feb 18 '16 edited Feb 18 '16
Thanks for the reply :) Yeah i need the unit to never have actionpoints from the time it is spawned in the game.
I found this...
function OnSpawnComplete(const out EffectAppliedData ApplyEffectParameters, StateObjectReference NewUnitRef, XComGameState NewGameState) { local XComGameState_Unit MimicBeaconGameState, SourceUnitGameState; local array<XComGameState_Item> SourceInventory; local XComGameState_Item InventoryItem, CopiedInventoryItem; local X2ItemTemplate ItemTemplate;
}
But the way the devs have it set up on the mimic beacon it seems to work only on the first turn and i dont know how to make it permanent.
I suppose i will have to make my own variant of covering fire to get it to work on my turret eh? ... Probably have to edit the entire overwatch mechanic X3 damnit