modding:function:objdamage
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| modding:function:objdamage [2017/02/03 21:32] – created xephyr | modding:function:objdamage [2017/06/26 03:40] (current) – 0xabcdef | ||
|---|---|---|---|
| Line 3: | Line 3: | ||
| === objDamage === | === objDamage === | ||
| - | ^ Syntax | (objDamage obj weaponType objSource [pos] [options]) | | + | ^ Syntax | (objDamage obj weaponType objSource [pos] [options]) |
| - | ^ Arguments | obj: The space object | + | ^ Arguments | obj: The SpaceObject |
| ^ | weaponType: unid of weapon to use to damage the object | | ^ | weaponType: unid of weapon to use to damage the object | | ||
| - | ^ | objSource: the source of the damgage | + | ^ | objSource: the source of the damage |
| - | ^ | [pos]: | + | ^ | [pos]: |
| - | ^ | [options]: | + | ^ | [options]: |
| - | ^ Returns | Result | + | ^ Returns | result: String code representing the result of the damage |
| ^ Category | [[spaceObject functions]]| | ^ Category | [[spaceObject functions]]| | ||
| ^ Description | Use to damage an object directly through a function. Used on Pteravores. | | ^ Description | Use to damage an object directly through a function. Used on Pteravores. | | ||
| - | === Option | + | === objSource |
| - | | + | |
| - | | + | |
| - | + | | |
| - | === Result === | + | * name: The string name of the cause |
| + | * flags: | ||
| + | * (obj [cause] [secondaryObj] [noun] [nounFlags]) | ||
| + | * obj: The source of the damage | ||
| + | * cause: A destroyReason | ||
| + | * secondaryObj: | ||
| + | * noun: | ||
| + | * nounFlags: | ||
| - | ' | + | === options === |
| - | ' | + | |
| - | ' | + | |
| - | ' | + | |
| - | ' | + | |
| + | * ' | ||
| + | * ' | ||
| + | |||
| + | === result === | ||
| + | |||
| + | * ' | ||
| + | * ' | ||
| + | * ' | ||
| + | * ' | ||
| + | * ' | ||
| + | * ' | ||
| + | * ' | ||
| + | * ' | ||
| + | * " | ||
| === Example === | === Example === | ||
| Line 37: | Line 54: | ||
| Return to [[modding: | Return to [[modding: | ||
| + | === References === | ||
| + | http:// | ||
modding/function/objdamage.1486157578.txt.gz · Last modified: by xephyr
