Need help?
Create a topic in the appropriate section
Don't write everything in the chat!Take a look at the marketplace
There you can buy
everything related to game serversDon't want a ban?
Please read our rules
Don't disturb the order!Sell or buy?
Use services of the guarantor
We will make your deal safe



- 0
-
Our picks
class ActionCoolItemCB : ActionContinuousBaseCB { override void CreateActionComponent() { m_ActionData.m_ActionComponent = new CAContinuousRepeat(3.5); } }; class ActionCoolItem: ActionContinuousBase { void ActionCoolItem() { m_CallbackClass = ActionCoolItemCB; m_CommandUID = DayZPlayerConstants.CMD_ACTIONFB_BLOWFIREPLACE; m_FullBody = true; m_StanceMask = DayZPlayerConstants.STANCEMASK_CROUCH; } override string GetText() { return "Остудить"; } override typename GetInputType() { return ContinuousInteractActionInput; } override void CreateConditionComponents() { m_ConditionItem = new CCINone; } override bool ActionCondition( PlayerBase player, ActionTarget target, ItemBase item ) { Edible_Base targetEB = Edible_Base.Cast(target.GetObject()); if (targetEB && !targetEB.IsKindOf("BottleBase") && targetEB.GetTemperature() > 10) { return true; } return false; } override void OnEndAnimationLoopServer( ActionData action_data ) { super.OnEndAnimationLoopServer(action_data); Edible_Base targetEB = Edible_Base.Cast(action_data.m_Target.GetObject()); targetEB.AddTemperature(-10); } };
Действие есть, выполнять начинает но мгновенно заканчивает. Эффект (-10 градусов температуры) накладывается. Как поставить действию время выполнения и добавить цикличность? (будет здорово если туда можно будет запихать условие прекращения действия)
Edited by XenoZD (see edit history)Share this post
Link to post
Share on other sites