Force shield effect

Place to get help with not working mods / modding interface.
Post Reply
User avatar
darius456
Fast Inserter
Fast Inserter
Posts: 222
Joined: Thu Jan 02, 2014 6:33 am
Contact:

Force shield effect

Post by darius456 »

Hello,

Is it possible to obtain information of shield current capacity level. I can get healt by this: "game.player.character.health", but how to get info about shield.
If i could determine shield level at tick+n time, and then at tick+n+1 time i can calulate (tick+n)-(tick+n+1) and determine if i get damage or if the shield is charaging.
Second question is... is it possible to force game to display an image over the player (semi transparent image of shield effect).

Any sugestions?

Sorry for my language, English is not my native.
Lenovo Y580 8GB Ram GF660m 128GB SSD W7

ficolas
Smart Inserter
Smart Inserter
Posts: 1068
Joined: Sun Feb 24, 2013 10:24 am
Contact:

Re: Force shield effect

Post by ficolas »

First one isnt possible, second one could be possible.
Second one can be made by creating a particle/explosion entity, and creating it on the player

User avatar
darius456
Fast Inserter
Fast Inserter
Posts: 222
Joined: Thu Jan 02, 2014 6:33 am
Contact:

Re: Force shield effect

Post by darius456 »

ficolas wrote:First one isnt possible, second one could be possible.
Second one can be made by creating a particle/explosion entity, and creating it on the player
Thx for Your answer,
Second part is almost done, but could you tell me how should i creating it on player in control script... any suggestions will be help. <- nevermind allready found it.
Lenovo Y580 8GB Ram GF660m 128GB SSD W7

Post Reply

Return to “Modding help”