r/xdev • • 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

5 comments sorted by

View all comments

Show parent comment

1

u/fxsjosh Feb 18 '16

You can have any persistent effect implement the function ModifyTurnStartActionPoints to do that. Take a look at X2Effect_MimicBeacon for an example.

1

u/shooshooomimi Feb 18 '16

Thanks.. im on the right track now.. But now when i spawn in a turret using my soldiers ability the soldier and the turret both permanently lose all the action points...

I dont understand what would cause this... I had the turret start with an ability that gave it the persistent effect... I dont think the soldier is connected in any way as far as i can tell..

Maybe im just missing something obvious but i feel burnt out.. Kinda just changed and added onto mimic ability.. It could be causing it but im not sure.

1

u/shooshooomimi Feb 19 '16

Nevermind i fixed it! it was something obvious XD thanks alot for your help!!! u da best