Difference between revisions of "ScriptObjectSetType"

From Amulets & Armor Wiki
Jump to: navigation, search
(Created page with "ObjectSetType( [object], [number]) === Arguments === '''object''' - Id of the Specific instance of a Thing on the map. (Hover over Thing in Doom Builder to see in Status Ba...")
 
(Example)
Line 11: Line 11:
  
 
  <nowiki>
 
  <nowiki>
1:      //open library
+
1:      //transform object into monster
        Compare(switch, SWITCHED) ;
+
ObjectSetType(87, 1003) ; //transform into ghost
        If(Equal, 100) ;
+
        Block(one) ;
+
Set(switch, SWITCHED) ;
+
        AreaSound(5001, 64, -1832, 700, 255) ;
+
      ChangeSideTexture(1873, "SWIT1U") ;
+
Print("A door opens in the distance.") ;
+
Delay(200);
+
AreaSound(18, 144, -1614, 168, 255) ;
+
SlideCeilingNice(151, 264, 368, 200, -1) ; //waterfall
+
SlideCeilingNice(157, 307, 411, 200, -1) ; // library
+
ObjectSetType(87, 1003) ; //spawn ghosts
+
ObjectSetType(121, 1003) ; //spawn ghosts
+
ObjectSetType(134, 1003) ; //spawn ghosts
+
ObjectSetType(148, 1003) ; //spawn ghosts
+
ObjectSetType(143, 1003) ; //spawn ghosts
+
ObjectSetType(146, 1003) ; //spawn ghosts
+
        Unblock(one) ;
+
 
         End() ;
 
         End() ;
 
</nowiki>
 
</nowiki>

Revision as of 16:47, 17 October 2016

ObjectSetType( [object], [number])


Arguments

object - Id of the Specific instance of a Thing on the map. (Hover over Thing in Doom Builder to see in Status Bar)

number - Thing type id to transform this thing into.

Example

1:      //transform object into monster
	ObjectSetType(87, 1003) ; //transform into ghost
        End() ;