Page MenuHomeFeedback Tracker

[Feature Request] New scripting command family: alt syntax for some createXXXX commands, setLifeTime, lifeTime
New, NormalPublic

Description

Alt syntax with two variants for createVehicle/createVehicleLocal/createSimpleObject/createMarker/createSoundSource:

<type> createVehicle [<pos>, [<lifetime>, <damage>]]
createVehicle [<type>, <position>, <markers>, <placement>, <special>, [<lifetime>, <damage>]]
createSimpleObject [<shapeName/class>, <position>, <local>, [<lifetime>, <damage>]]
createMarker [<name>, <position>, <lifeTime>]
createSoundSource [<type>, <position>, <markers>, <placement>, <lifeTime>]
  • <lifeTime>: optional. time in seconds after the created object/marker would be deleted/killed.
  • <damage>: optional. bool. True = given object gets damaged to death, false (default) = given object gets deleted. Supported only by objects that can receive damage of course.

Couple that with setLifeTime and lifeTime for setting/getting the given object's lifetime:

<object/marker> setLifeTime <lifetime> or <object/marker> setLifeTime [<lifetime>, <damage>]
  • For setting the lifetime of the given object.
lifeTime <object/marker>
  • Would return the current lifetime of the given object

Details

Severity
None
Resolution
Open
Reproducibility
N/A
Operating System
Windows 7
Category
Engine

Event Timeline

h- created this task.Aug 17 2020, 9:01 AM
DrSova added a subscriber: DrSova.Sep 4 2020, 3:09 PM