User Tools

Site Tools


script:module:world

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
script:module:world [2020-01-04 15:44]
skyjake [Functions]
script:module:world [2020-01-18 07:44] (current)
skyjake
Line 43: Line 43:
  
 Starts the attack action of an enemy by calling the native function ''​P_Attack()''​. If the current target of the enemy is in the melee range, //damage// points of damage will be dealt. Otherwise, a missile is spawned. //​missileId//​ must be a valid [[ded:​Thing]] ID. Starts the attack action of an enemy by calling the native function ''​P_Attack()''​. If the current target of the enemy is in the melee range, //damage// points of damage will be dealt. Otherwise, a missile is spawned. //​missileId//​ must be a valid [[ded:​Thing]] ID.
 +
 +#​@Identifier_HTML~changeFlags~@#​ (
 + #​@Arg_HTML~Number,​index~@#,​
 + #​@Arg_HTML~Number,​flags~@#,​
 + #​@Arg_HTML~Number,​doSet~@#​ )
 +
 +Changes thing flags. Each thing has three 32-bit integers for storing flags: //index// is 1, 2 or 3, for ''​flags'',​ ''​flags2''​ and ''​flags3''​. //flags// is a bitmask specifying which flags are being changed. If //doSet// evaluates to True, the flags will be set. Otherwise they will be unset.
  
  
Line 61: Line 68:
   ​   ​
 Returns the dropped thing as a World.Thing,​ or None. Returns the dropped thing as a World.Thing,​ or None.
 +
 +
 +#​@Identifier_HTML~flags~@#​ (
 + #​@Arg_HTML~Number,​index~@#​ )
 +
 +Returns thing flags. Each thing has three 32-bit integers for storing flags: //index// is 1, 2 or 3, for ''​flags'',​ ''​flags2''​ and ''​flags3''​.
  
  
Line 96: Line 109:
  
 Pushes the thing backwards by //force// units. For example, the Heretic Phoenix Rod uses a recoil of 4 units. The current direction of the thing determines which direction the recoil is applied. ​ Pushes the thing backwards by //force// units. For example, the Heretic Phoenix Rod uses a recoil of 4 units. The current direction of the thing determines which direction the recoil is applied. ​
 +
 +#​@Identifier_HTML~setNoBlocking~@#​ ( )
 +
 +Unsets the MF_SOLID (0x2) flag.
  
 #​@Identifier_HTML~startSound~@#​ ( #​@Identifier_HTML~startSound~@#​ (
script/module/world.1578145443.txt.gz ยท Last modified: 2020-01-04 15:44 by skyjake