LuaAPI.wiki
changeset 139 6bf231a611a7
parent 138 9ca80a93aae0
child 140 04d82b673bc4
equal deleted inserted replaced
138:9ca80a93aae0 139:6bf231a611a7
   227 </blockquote>
   227 </blockquote>
   228 === <tt>!GetHogName(gearUid)</tt> ===
   228 === <tt>!GetHogName(gearUid)</tt> ===
   229 
   229 
   230 <blockquote>returns the name of the specified hedgehog gear
   230 <blockquote>returns the name of the specified hedgehog gear
   231 </blockquote>
   231 </blockquote>
   232 === <tt>!SetHogName(gearUid, name)</tt> ===
       
   233 
       
   234 <blockquote>Sets the name of the specified hedgehog gear
       
   235 </blockquote>
       
   236 === <tt>!GetHogHat(gearUid)</tt> ===
   232 === <tt>!GetHogHat(gearUid)</tt> ===
   237 
   233 
   238 <blockquote>Returns the hat of the specified hedgehog gear
   234 <blockquote>Returns the hat of the specified hedgehog gear
   239 </blockquote>
   235 </blockquote>
   240 === <tt>!SetHogHat(gearUid, hat)</tt> ===
   236 
   241 
       
   242 <blockquote>Sets the hat of the specified hedgehog gear
       
   243 </blockquote>
       
   244 === <tt>!GetGearTarget(gearUid, x, y)  (0.9.16)</tt> ===
   237 === <tt>!GetGearTarget(gearUid, x, y)  (0.9.16)</tt> ===
   245 
   238 
   246 <blockquote>Returns the x and y coordinate of target-based weapons/utilities. <b> Note: </b>: This can't be used in onGearAdd() but must be called after gear creation. 
   239 <blockquote>Returns the x and y coordinate of target-based weapons/utilities. <b> Note: </b>: This can't be used in onGearAdd() but must be called after gear creation. 
   247 </blockquote>
       
   248 === <tt>!SetGearTarget(gearUid, x, y) (0.9.16)</tt> ===
       
   249 
       
   250 <blockquote>Sets the x and y coordinate of target-based weapons/utilities. <b> Note: </b>: This can't be used in onGearAdd() but must be called after gear creation. 
       
   251 </blockquote>
   240 </blockquote>
   252 === <tt>GetX(gearUid)</tt> ===
   241 === <tt>GetX(gearUid)</tt> ===
   253 
   242 
   254 <blockquote>returns x coordinate of the gear
   243 <blockquote>returns x coordinate of the gear
   255 </blockquote>
   244 </blockquote>
   427 Notice: This function is no longer used, use GetGearVelocity and SetGearVelocity instead.
   416 Notice: This function is no longer used, use GetGearVelocity and SetGearVelocity instead.
   428 === <tt>!FollowGear(gearUid)</tt> ===
   417 === <tt>!FollowGear(gearUid)</tt> ===
   429 
   418 
   430 <blockquote>Makes the gameclient follow the specifiec gear.
   419 <blockquote>Makes the gameclient follow the specifiec gear.
   431 </blockquote>
   420 </blockquote>
       
   421 === <tt>!SetHogName(gearUid, name)</tt> ===
       
   422 
       
   423 <blockquote>Sets the name of the specified hedgehog gear
       
   424 </blockquote>
       
   425 === <tt>!SetHogHat(gearUid, hat)</tt> ===
       
   426 
       
   427 <blockquote>Sets the hat of the specified hedgehog gear
       
   428 </blockquote>
       
   429 === <tt>!SetGearTarget(gearUid, x, y) (0.9.16)</tt> ===
       
   430 
       
   431 <blockquote>Sets the x and y coordinate of target-based weapons/utilities. <b> Note: </b>: This can't be used in onGearAdd() but must be called after gear creation. 
       
   432 </blockquote>
   432 === <tt>!SetState(gearUid, state)</tt> ===
   433 === <tt>!SetState(gearUid, state)</tt> ===
   433 
   434 
   434 <blockquote>Sets the state of the specified gear to one of [States].
   435 <blockquote>Sets the state of the specified gear to one of [States].
   435 </blockquote>
   436 </blockquote>
   436 
   437