Jump to content
  • 0

spawn monster facing direction 1-8


Naruto

Question


  • Group:  Members
  • Topic Count:  20
  • Topics Per Day:  0.01
  • Content Count:  416
  • Reputation:   73
  • Joined:  05/16/19
  • Last Seen:  

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

Link to comment
Share on other sites

5 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  351
  • Reputation:   263
  • Joined:  09/08/13
  • Last Seen:  

@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
Link to comment
Share on other sites

  • 1

  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2345
  • Joined:  10/28/11
  • Last Seen:  

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
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.01
  • Content Count:  233
  • Reputation:   49
  • Joined:  12/20/18
  • Last Seen:  

Would monsters be spawned for a test room form?
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  20
  • Topics Per Day:  0.01
  • Content Count:  416
  • Reputation:   73
  • Joined:  05/16/19
  • Last Seen:  

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

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  20
  • Topics Per Day:  0.01
  • Content Count:  416
  • Reputation:   73
  • Joined:  05/16/19
  • Last Seen:  

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
Link to comment
Share on other sites

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.

×
×
  • Create New...