Record Class ComponentTrigger
java.lang.Object
java.lang.Record
com.botwithus.bot.api.model.ComponentTrigger
- Record Components:
type- event type the engine indexes the trigger by —9= click,10= key,39= op, plus hover / scroll / drag-reaction types (seeActionTypes.TRIGGER_TYPE_*). Pass this as thetriggerTypeargument tofireComponentTrigger.scriptId- the CS2 script id the engine runs for that event — look it up with the CS2 tooling to see exactly which arguments it consumes.
One CS2 event trigger bound to an interface
Component — the discovery
side of trigger firing. Tells a scripter which input event a component
actually responds to, and what to drive via
GameAPI.fireComponentTrigger(int, int, int, int, int).-
Constructor Summary
ConstructorsConstructorDescriptionComponentTrigger(int type, int scriptId) Creates an instance of aComponentTriggerrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intscriptId()Returns the value of thescriptIdrecord component.final StringtoString()Returns a string representation of this record class.inttype()Returns the value of thetyperecord component.
-
Constructor Details
-
ComponentTrigger
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with thecomparemethod from their corresponding wrapper classes. -
type
-
scriptId
-