oldyz
Well-known member
i was running an experiment & this line command is crashing the game:
when it reaches the frame, the game crashes.
on the other hand, i can't figure out how to use this next one
Also , i am not sure on how to use the damageentity
damageentity(entity, other, force, drop, type)
Damage the entity.
'entity' is the entity you want to damage.
'other' who damage this entity, can be itself, if you specify a player's entity, score will be added. Default to the entity itself.
'force' is the attack force. default to 1.
'drop' is whether the attack knocks down the entity.
'type' attack type, e.g., a shock attack or attack1-10, see openborconstant, the constants starts with 'ATK_'
i tried this
@cmd damageentity "zombie" self 200 0 attack1
Code:
anim spawn
delay 15
offset 124 124
bbox 0 0 0 0
drawmethod 32 32
@script
if(frame == 0){
void self = getlocalvar("self");
int map = rand()%5;
if(map < 0)
{
-map == map;
}
changeentityproperty(self, "map", map);
}
@end_script
frame data/chars/zombie/s1
drawmethod 64 64
frame data/chars/zombie/s1
drawmethod 128 128
frame data/chars/zombie/s1
nodrawmethod
frame data/chars/zombie/s1
frame data/chars/zombie/s2
sound data/sounds/n2/zombgr.wav
frame data/chars/zombie/s3
frame data/chars/zombie/s4
frame data/chars/zombie/s5
@cmd killentity "zombie" #----------------------------------------
frame data/chars/zombie/s6
frame data/chars/zombie/s7
when it reaches the frame, the game crashes.
on the other hand, i can't figure out how to use this next one
Also , i am not sure on how to use the damageentity
damageentity(entity, other, force, drop, type)
Damage the entity.
'entity' is the entity you want to damage.
'other' who damage this entity, can be itself, if you specify a player's entity, score will be added. Default to the entity itself.
'force' is the attack force. default to 1.
'drop' is whether the attack knocks down the entity.
'type' attack type, e.g., a shock attack or attack1-10, see openborconstant, the constants starts with 'ATK_'
i tried this
@cmd damageentity "zombie" self 200 0 attack1