215{
216 void ActionCarHornLong()
217 {
220 }
221
223 {
224 return false;
225 }
226
228 {
229 return false;
230 }
231
233 {
234 return true;
235 }
236
238 {
240 }
241
243 {
244 return false;
245 }
246
248 {
251 }
252
254 {
256 return action_data;
257 }
258
260 {
262 }
263
266 {
267 super.OnUpdate(action_data);
268
271 {
274 }
275 }
276
278 {
279 super.OnEndInput(action_data);
280
283
286 {
289 }
290 }
291
293 {
294 super.OnStart(action_data);
295
299 }
300
302 {
303 super.OnStartServer(action_data);
304
308 }
309
311 {
312 super.OnEndServer(action_data);
313
316 }
317
319 {
320 super.WriteToContext(ctx, action_data);
321
323
326 }
327
329 {
330 if (!action_recive_data)
331 {
332 action_recive_data = new CarHornActionReceiveData();
333 }
334
335 super.ReadFromContext(ctx, action_recive_data);
336
337 bool needUpdate;
338 if (!ctx.
Read(needUpdate))
339 return false;
340
342 if (!ctx.
Read(carScript))
343 return false;
344
345 CarHornActionReceiveData carHornReceivedData = CarHornActionReceiveData.Cast(action_recive_data);
346 carHornReceivedData.m_ActionNeedEnd = needUpdate;
347 carHornReceivedData.m_Car = carScript;
348
349 return true;
350 }
351
353 {
354 super.HandleReciveData(action_recive_data, action_data);
355
356 CarHornActionReceiveData carHornReceivedData = CarHornActionReceiveData.Cast(action_recive_data);
359 carHornData.
m_Car = carHornReceivedData.m_Car;
360 }
361}
ref CCIBase m_ConditionItem
ref CCTBase m_ConditionTarget
override void OnStart(ActionData action_data)
sets the m_ActionNeeded flag on both sides
override ActionData CreateActionData()
override bool CanBeUsedInVehicle()
override bool HasProgress()
override void CreateConditionComponents()
override bool ReadFromContext(ParamsReadContext ctx, out ActionReciveData action_recive_data)
override void OnEndInput(ActionData action_data)
override bool UseMainItem()
override bool ActionCondition(PlayerBase player, ActionTarget target, ItemBase item)
override void OnEndServer(ActionData action_data)
override void WriteToContext(ParamsWriteContext ctx, ActionData action_data)
override void HandleReciveData(ActionReciveData action_recive_data, ActionData action_data)
override bool HasTarget()
override void OnStartServer(ActionData action_data)
void ActionTarget(Object object, Object parent, int componentIndex, vector cursorHitPos, float utility, string surfaceName="")
void SetCommand(int command_uid)
static void SetCarHornState(CarHornActionData pActionData, int pState)
static bool ActionCondition(PlayerBase player)
override void EndActionComponent()
Super root of all classes in Enforce script.
proto bool Write(void value_out)
proto bool Read(void value_in)
DayZPlayerConstants
defined in C++
Serializer ParamsReadContext
Serializer ParamsWriteContext
static proto bool CastTo(out Class to, Class from)
Try to safely down-cast base class to child class.