26.02.2003, 01:18
We are sorry for the delay of the reply.
I hope this can help you:
CastSpellUnit
Format:
CastSpellUnit( constSpell : string , x : float , y : float , Unit : object )
ww
Description:
Use the spell (constSpell) for object (Unit). Where x, y - determines where the spell effect will start.
Example from the game:
CastSpellUnit("invisibility{d2;d2;d2;d2;d2;d2;d2;d2}",50,50,Spirit)
GetObject, GetObjectByID
Format:
GetObject( idObject : float ) : object
GetObjectByID( idObject : string ) : object
Description:
Return copy of object for Unit with id: idObject. GetObject will not work with numbers larger than 999.999.999, use GetObjectByID instead.
Example from game:
AddObject( Salut, GetObject( 196568 ) )
PodMaster = GetObjectByID( "927062" )
Cast
Format:
Cast( Unit : object , x : float , y : float )
Description:
Use active ( Unit ) spell for place (x,y).
Limitation:
1. Select the active spell first (may use SetSpellAggression).
2. The spell must be intended for the place but not for the unit.
There are no examples of this command in the game.
I hope this can help you:
CastSpellUnit
Format:
CastSpellUnit( constSpell : string , x : float , y : float , Unit : object )
ww
Description:
Use the spell (constSpell) for object (Unit). Where x, y - determines where the spell effect will start.
Example from the game:
CastSpellUnit("invisibility{d2;d2;d2;d2;d2;d2;d2;d2}",50,50,Spirit)
GetObject, GetObjectByID
Format:
GetObject( idObject : float ) : object
GetObjectByID( idObject : string ) : object
Description:
Return copy of object for Unit with id: idObject. GetObject will not work with numbers larger than 999.999.999, use GetObjectByID instead.
Example from game:
AddObject( Salut, GetObject( 196568 ) )
PodMaster = GetObjectByID( "927062" )
Cast
Format:
Cast( Unit : object , x : float , y : float )
Description:
Use active ( Unit ) spell for place (x,y).
Limitation:
1. Select the active spell first (may use SetSpellAggression).
2. The spell must be intended for the place but not for the unit.
There are no examples of this command in the game.