Jump to content
  • 0

spawn monster facing direction 1-8


Question

Posted

i need monsters spawned in certain positions

 

1 2 3

4      5

6 7 8

 

monster doesnt move like plant

 

if possible if you know a way so he doesnt turn when you hit him too ... 

 

thank you i can pay

5 answers to this question

Recommended Posts

  • 0
Posted
On 10/18/2019 at 10:26 AM, Disabled LOOLP said:

Would monsters be spawned for a test room form?

i would like an option to spawn a monster that faces a certain direction

sort of like a dummy looking straight... I dont really want 5 of the same sprite and thought you may have had a shortcut

On 10/19/2019 at 5:39 PM, Functor said:

@Naruto

https://mega.nz/#!URsFTSKD!CcDh8dxLjy6nsHXKxgHCIAEEAXoR9Q_b38HZQ1bpswg


monster "payon",159,215,"Fur Seal",1317,1,"Example::L1",Size_Small,AI_NONE,DIR_WEST;
monster "payon",159,213,"Fur Seal",1317,1,"Example::L2",Size_Small,AI_NONE,DIR_WEST;

monster "payon",152,215,"Fur Seal",1317,1,"Example::L3",Size_Small,AI_NONE,DIR_SOUTH;
monster "payon",152,213,"Fur Seal",1317,1,"Example::L4",Size_Small,AI_NONE,DIR_SOUTH;

mob_spawn_set_direction.png

thats what i was afraid of, thank you lol

  • 0
Posted (edited)

@Naruto

https://mega.nz/#!URsFTSKD!CcDh8dxLjy6nsHXKxgHCIAEEAXoR9Q_b38HZQ1bpswg

monster "payon",159,215,"Fur Seal",1317,1,"Example::L1",Size_Small,AI_NONE,DIR_WEST;
monster "payon",159,213,"Fur Seal",1317,1,"Example::L2",Size_Small,AI_NONE,DIR_WEST;

monster "payon",152,215,"Fur Seal",1317,1,"Example::L3",Size_Small,AI_NONE,DIR_SOUTH;
monster "payon",152,213,"Fur Seal",1317,1,"Example::L4",Size_Small,AI_NONE,DIR_SOUTH;

mob_spawn_set_direction.png

Edited by Functor
  • 1
Posted

you can actually spawn it this way  and use setuntidata to control the direction.

	monster "payon",159,215,"Fur Seal",1317,1,strnpcinfo(3)+"::OnKilled";
	setunitdata $@mobid[0], UMOB_LOOKDIR, DIR_EAST;
	monster "payon",159,213,"Fur Seal",1317,1,strnpcinfo(3)+"::OnKilled";
	setunitdata $@mobid[0], UMOB_LOOKDIR, DIR_EAST;

	monster "payon",152,215,"Fur Seal",1317,1,strnpcinfo(3)+"::OnKilled";
	setunitdata $@mobid[0], UMOB_LOOKDIR, DIR_WEST;
	monster "payon",152,213,"Fur Seal",1317,1,strnpcinfo(3)+"::OnKilled";
	setunitdata $@mobid[0], UMOB_LOOKDIR, DIR_WEST;

 

  • Upvote 1
  • 0
Posted (edited)
On 10/26/2019 at 9:55 AM, Emistry said:

you can actually spawn it this way  and use setuntidata to control the direction.


	monster "payon",159,215,"Fur Seal",1317,1,strnpcinfo(3)+"::OnKilled";
	setunitdata $@mobid[0], UMOB_LOOKDIR, DIR_EAST;
	monster "payon",159,213,"Fur Seal",1317,1,strnpcinfo(3)+"::OnKilled";
	setunitdata $@mobid[0], UMOB_LOOKDIR, DIR_EAST;

	monster "payon",152,215,"Fur Seal",1317,1,strnpcinfo(3)+"::OnKilled";
	setunitdata $@mobid[0], UMOB_LOOKDIR, DIR_WEST;
	monster "payon",152,213,"Fur Seal",1317,1,strnpcinfo(3)+"::OnKilled";
	setunitdata $@mobid[0], UMOB_LOOKDIR, DIR_WEST;

 

This is what i was looking for but i figured it out in the src 

but thats an npc script? i need it to spawn on its own...

 

 

under mob_spawn

	
	if (md->class_ == MOBID_car1e) {
	md->ud.dir = 7;
	}
	else
	md->ud.dir = 0;

 

Edited by Naruto

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...