Forum

> > Stranded II > Scripts > Scripting Questions
ForenübersichtStranded II-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch Scripting Questions

2.429 Antworten
Seite
Zum Anfang Vorherige 1 244 45 46121 122 Nächste Zum Anfang

alt Re: Scripting Questions

HudaJan
Super User Off Offline

Zitieren
Yeah with my "noncence" (a bit rude, I'm sorry )
I ment it is not possible

Yeah I know it cause I was trying to make (long time ago) exactly agressive bird (before version 1001 - there is such a behaviour) and I was trying to combine it to make powerful dragon MUHUHAHAHAHA
I gave it up and after version 1001 I just lost interest in the dragon

alt Re: Scripting Questions

Vince87
User Off Offline

Zitieren
is there a way to alter items when I hit it with a tool?
The tool is in my hand and the item lies on the ground for example.

alt Re: Scripting Questions

Vince87
User Off Offline

Zitieren
and how can i alter the position of items that I drop? I want to be able to drop things on tables. script=start
thit script for example doesnt work:

on:drop{
setpos "item", 4,getx("self")+0.5,gety("self"),getz("self");
}
}
script=end

where is the problem?
can somebody help me

alt Re: Scripting Questions

Flying Lizard
User Off Offline

Zitieren
Don't make doubleposts, how often do we have to tell you guys about that, there is an edit button

1.use the event on:hit
2.I've already answerd that question in the german forum.

alt Re: Scripting Questions

HudaJan
Super User Off Offline

Zitieren
Oh yeah I didn't notice, sorry
I'm just used to work with those scripts cause I work more with stored items than with general items liying around
Never mind...

alt Re: Scripting Questions

Vince87
User Off Offline

Zitieren
I managed to let the items fall wit offset.

but they dont fall in front of the player.only at the x axis.
how do i let them know my rotation?

script=start
on:use {
     $id=create("item",X);
     rpos "item", $id,0,40,20;
     freestored "unit",1,X,1;
}
script=end

alt Re: Scripting Questions

HudaJan
Super User Off Offline

Zitieren
use s2 cmd setpos and as you can notice there are three params, pitch yaw and roll,
pitch Y,X rotation
yaw Y,Z rotation
roll X,Z rotation

alt Re: Scripting Questions

Gast

Zitieren
it was me,just forgot my password and i cannot get it back because i'm not in house (just cannot edit)

alt Re: Scripting Questions

Vince87
User Off Offline

Zitieren
why doesnt it work?:(the first item just disapears...no error)
on:kill {
      $id=currentid();
$x=getx("item",$id);
      $y=gety("item",$id);
$z=getz("item",$id);
      $b=create("item",4);
      rpos "item", $b,$x,$y+30,$z;
$bla=1;
      if($bla==1){
free "self";
}
}
script=end

I want to replace one item with another. but at exactly the same place. with "create" I can only set x and z coordinates.

can anybody help me?

the height of the item is the important part!

alt Re: Scripting Questions

DC
Admin Off Offline

Zitieren
rpos is for "moving" an item. you should use setpos instead.
1
setpos "item", $b,$x,$y,$z;
and you don't need $id=currentid(); and so on. just use $x=getx("self"); etc.

furthermore the free "self" makes no sense in the kill event of an item. the item will be removed anyway in a kill event.

alt modeling animashion help

darksol
User Off Offline

Zitieren
i made a model of a wiled bore and i used milk shape to animated it all that i need is some help on the script normal I am good at reading script but the script for the units is a little confusing is there a guide that explains the script for the units?
Zum Anfang Vorherige 1 244 45 46121 122 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtStranded II-ÜbersichtForenübersicht