XML:ONLV: Difference between revisions

30 bytes removed ,  2 March 2013
m
typos/mistakes
m (ONSK can be a fake name)
m (typos/mistakes)
Line 404: Line 404:
  }
  }
   
   
  func targets_are_not_gone
  func targets_are_gone
  {
  {
  trigvolume_enable tv75 0
  trigvolume_enable tv75 0
Line 412: Line 412:
;Explanation:
;Explanation:


Player enters the TV, "targets_gone" gets triggered. The variable "inside_target_function" should be 0 be default, so we are entering now the first if statement. Next, we can assume that the player didn't destroy all glass objects, so "num_broken" will be less than 18: "targets_are_not_gone" gets triggered.
Player enters the TV, "targets_gone" gets triggered. The variable "inside_target_function" should be 0 be default, so we are entering now the first if statement. Next, we can assume that the player didn't destroy all glass objects, so "num_broken" will be less than 18: "targets_are_not_gone" gets called.


The TV function "targets_gone" would be triggered every frame but "targets_are_not_gone" increases the pause between checks: The TV gets deactivated for 60 frames. Then the TV becomes enabled again and will start anew until all glass objects got destroyed or Player left the TV.
The TV function "targets_gone" would be triggered every frame but "targets_are_not_gone" increases the pause between checks: The TV gets deactivated for 60 frames. Then the TV becomes enabled again and will start anew until all glass objects got destroyed or player left the TV.


Unnecessary "targets_gone" functions will do nothing because "inside_target_function" was set to 1 by the first one.
Unnecessary "targets_gone" functions will do nothing because "inside_target_function" was set to 1 by the first one.


"targets_are_not_gone" eventually disables the TV to prevent memory overflow, the function contains also all things "[...]" that you want to happen after the glass target broke.
"targets_are_gone" eventually disables the TV to prevent memory overflow, the function contains also all things "[...]" that you want to happen after the glass target broke.




Line 550: Line 550:
| <Animation Name="...">
| <Animation Name="...">
| link
| link
| Optional tag. It hold a link to *.dae file.
| File path to *.dae file.
|-
|-
|valign="top"| <Flags>
|valign="top"| <Flags>
8,452

edits