1- # Scraped from: https://wiki.multitheftauto.com/wiki/CreateExplosion
2- client :
1+ shared : &shared
32 name : createExplosion
43 description : Creates an explosion of a certain type at a specified point in the
54 world. If creator is specified, the explosion will occur only in its dimension.
5+ parameters : []
6+ returns :
7+ values :
8+ - type : bool
9+ name : result
10+ description : Return **true** if the explosion was created. **false** if invalid parameters were
11+ passed.
12+
13+ client :
14+ << : *shared
615 parameters :
716 - name : x
817 type : float
9- description : a float value that specifies the X world coordinate where the explosion
18+ description : A float value that specifies the X world coordinate where the explosion
1019 is created at.
1120 - name : " y"
1221 type : float
13- description : a float value that specifies the Y world coordinate where the explosion
22+ description : A float value that specifies the Y world coordinate where the explosion
1423 is created at.
1524 - name : z
1625 type : float
17- description : a float value that specifies the Z world coordinate where the explosion
26+ description : A float value that specifies the Z world coordinate where the explosion
1827 is created at.
1928 - name : theType
2029 type : int
21- description : ' a integer specifying the explosion type, see: Explosion types'
30+ description : ' An integer specifying the explosion type, see: [ Explosion types](/reference/ID_Lists/Explosion_types). '
2231 - name : makeSound
2332 type : bool
24- description : a boolean specifying whether the explosion should be heard or not.
33+ description : A boolean specifying whether the explosion should be heard or not.
2534 default : ' true'
2635 - name : camShake
2736 type : float
28- description : a float specifying the camera shake's intensity.
37+ description : A float specifying the camera shake's intensity.
2938 default : ' -1.0'
3039 - name : damaging
3140 type : bool
32- description : a boolean specifying whether the explosion should cause damage or
41+ description : A boolean specifying whether the explosion should cause damage or
3342 not.
3443 default : ' true'
3544 examples :
36- - path : examples/createExplosion-2.lua
37- description : Example 1:This code will create an explosion for the local player
38- when they spawn.
39- side : client
40- returns :
41- values :
42- - type : bool
43- name : value
44- description : true if the explosion was created. false if invalid parameters were
45- passed.
46- requires_review : true
45+ - path : examples/createExplosion-4.lua
46+ description : This code will create an explosion for the local player when they spawn.
47+ - path : examples/createExplosion-5.lua
48+ description : This will cause an explosion that will not harm the player.
49+
4750server :
48- name : createExplosion
49- description : Creates an explosion of a certain type at a specified point in the
50- world. If creator is specified, the explosion will occur only in its dimension.
51+ << : *shared
5152 parameters :
5253 - name : x
5354 type : float
54- description : a float value that specifies the X world coordinate where the explosion
55+ description : A float value that specifies the X world coordinate where the explosion
5556 is created at.
5657 - name : " y"
5758 type : float
58- description : a float value that specifies the Y world coordinate where the explosion
59+ description : A float value that specifies the Y world coordinate where the explosion
5960 is created at.
6061 - name : z
6162 type : float
62- description : a float value that specifies the Z world coordinate where the explosion
63+ description : A float value that specifies the Z world coordinate where the explosion
6364 is created at.
6465 - name : theType
6566 type : int
66- description : ' an integer specifying the explosion type, see: Explosion types'
67+ description : ' An integer specifying the explosion type, see: [ Explosion types](/reference/ID_Lists/Explosion_types). '
6768 - name : creator
6869 type : player
69- description : the explosion's simulated creator, the player responsible for it.
70+ description : The explosion's simulated creator, the player responsible for it.
7071 default : nil
7172 examples :
7273 - path : examples/createExplosion-1.lua
73- description : Example 1:This code will create an explosion at the player's position
74- when they spawn.
75- side : server
76- returns :
77- values :
78- - type : bool
79- name : value
80- description : true if the explosion was created. false if invalid parameters were
81- passed.
82- requires_review : true
74+ description : This code will create an explosion at the player's position when they spawn.
75+ - path : examples/createExplosion-2.lua
76+ description : This example allows creation of claymore mines, which trigger and explode.
77+ - path : examples/createExplosion-3.lua
78+ description : This will cause an explosion that will not harm the player.
0 commit comments