Difference between revisions of ".shoot"

From WikiManual
Jump to: navigation, search
m
m (.shoot not .shot)
Line 8: Line 8:
  
 
==Example:==
 
==Example:==
  -1 .shot store}}  
+
  -1 .shoot store}}  
 
or  
 
or  
 
  -1 7 store
 
  -1 7 store

Revision as of 13:34, 14 February 2006

V221.gif .shoot shots particles to hunt, feed or carry information to a target. The shot's strength and range are determined by a bot's body. A shot by default fires directly along the bot's front .eye5 vector.

Sysvars:

Shooting:

.shoot 7 .shootval 8
.kills 220
.backshot 900 .aimshoot 901

Syntax:

Whenever a non zero value is stored in .shoot, a shot particle is produced.

Example:

-1 .shoot store}} 

or

-1 7 store

Shots a particle for hunting. Anything hit by that particle will send energy particles back to the shots direction.

Negative numbers:

Negative numbers feed or damage the target:

  • -1 shots for hunting. A target is forced to "-2 .shot" back.
  • -2 shots Energy for feeding.
  • -3 shots Venom.
  • -4 shots Waste.
  • -5 shots Poison in response to an incoming "-1 .shot".
  • -6 shots Body.

.shootval increases the range of such a shot.

Positive numbers:

Positive numbers will set the numbers Sysvar of a target to the number stored in the shoters .shootval. This can be used to transfer information or to enforce actions.

50 .shoot store

Store a value of 50 in my memory location 7 (.shoot). The value stored in .shoot defines the memory location in which it will strike its target. The value stored in .shootval will be transferred into that memory location when the shot hits another robot.