| Blockland Forums > Help |
| would i have to use vce |
| (1/5) > >> |
| deathrider:
for this if so what are the events im making a prison and the people will be able to find a knife know i want it so that after a amount of hits on a bar it breaks like fake kill what would the events be i dont know how to use vec im learning eg:looking at the post on how to do it |
| deathrider:
i also need it that after a certain amount of searching something you finally find something |
| Tezuni:
--- Code: ---1. OnProjectileHit > Self > VCE_ModVariable [Hits] [Add] [1] 2. OnProjectileHit > Self > VCE_IfValue [<Var:Self:Hits>] [>=] [5] 3. OnVariableTrue > Self > FakeBrickKill [10] 4. OnVariableTrue > Self > VCE_ModVariable [Hits] [Set] [0] --- End code --- This will fake kill the brick for 10 seconds after 5 projectiles have hit it. |
| phflack:
i would use toggles --- Code: ---[0]onprojectilehit>self>toggleeventsenabled[0 1] [1]onprojectilehit>self>toggleeventsenabled[1 2] [2]onprojectilehit>self>toggleeventsenabled[2 3] [3]onprojectilehit>self>toggleeventsenabled[3 4 5] [4]onprojectilehit>self>toggleeventsenabled[0 4 5] [5]onprojectilehit>self>fakekill[10] --- End code --- that would do the same thing as tezuni's, although i would use his way for more than 5 hits or so, and my way for less |
| deathrider:
--- Quote from: Tezuni on April 11, 2010, 05:51:42 AM --- --- Code: ---1. OnProjectileHit > Self > VCE_ModVariable [Hits] [Add] [1] 2. OnProjectileHit > Self > VCE_IfValue [<Var:Self:Hits>] [>=] [5] 3. OnVariableTrue > Self > FakeBrickKill [10] 4. OnVariableTrue > Self > VCE_ModVariable [Hits] [Set] [0] --- End code --- This will fake kill the brick for 10 seconds after 5 projectiles have hit it. --- End quote --- yer would that be the same if lets say a knife or a bottle was to hit it? |
| Navigation |
| Message Index |
| Next page |