SetElementOnFire: Difference between revisions
Jump to navigation
Jump to search
m (→See Also) |
mNo edit summary |
||
Line 3: | Line 3: | ||
{{New feature/item|3.0161|1.6.0|22864| | {{New feature/item|3.0161|1.6.0|22864| | ||
This function can be used to set a [[element]] on fire or extinguish a fire on it. Supported types are [[ped]], [[vehicle]] and [[object]].}} | This function can be used to set a [[element]] on fire or extinguish a fire on it. Supported types are [[ped]], [[vehicle]] and [[object]].}} | ||
{{Note|Function on the client side only works on elements created on the client side.}} | |||
==Syntax== | ==Syntax== |
Latest revision as of 03:14, 31 December 2024
Syntax
bool setElementOnFire ( element theElement, bool isOnFire )
OOP Syntax Help! I don't understand this!
- Method: element:setOnFire(...)
- Variable: .onFire
- Counterpart: isElementOnFire
Required Arguments
- theElement: The element that we want to set/unset.
- isOnFire: true to set the element on fire, false to extinguish any fire on it.
Returns
Returns true if successful, false otherwise
Example
Script Example Missing Function SetElementOnFire needs a script example, help out by writing one. | |
Before submitting check out Editing Guidelines Script Examples. |
See Also
- attachElements
- createElement
- destroyElement
- detachElements
- getAttachedElements
- getElementAlpha
- getElementAttachedOffsets
- getElementAttachedTo
- getElementByIndex
- getElementByID
- getElementChild
- getElementChildren
- getElementChildrenCount
- getElementCollisionsEnabled
- getElementColShape
- getElementData
- getAllElementData
- hasElementData
- getElementDimension
- getElementHealth
- getElementID
- getElementInterior
- getElementMatrix
- getElementModel
- getElementParent
- getElementPosition
- getElementRotation
- getElementsByType
- getElementsWithinColShape
- getElementsWithinRange
- getElementType
- getElementVelocity
- getLowLODElement
- getRootElement
- isElement
- isElementAttached
- isElementCallPropagationEnabled
- isElementDoubleSided
- isElementFrozen
- isElementInWater
- isElementLowLOD
- isElementWithinColShape
- isElementWithinMarker
- setElementAlpha
- setElementAngularVelocity
- getElementAngularVelocity
- setElementAttachedOffsets
- setElementCallPropagationEnabled
- setElementCollisionsEnabled
- setElementData
- setElementDimension
- setElementDoubleSided
- setElementFrozen
- setElementHealth
- setElementID
- setElementInterior
- setElementModel
- setElementParent
- setElementPosition
- setElementRotation
- setElementVelocity
- setLowLODElement
- getPedContactElement
- getResourceDynamicElementRoot
- getResourceRootElement