Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- integer total;
- integer start;
- default
- {
- touch_start(integer total_number)
- {
- vector myPos = llGetPos();
- rotation myRot = llGetRot();
- start = 0;
- total = llGetInventoryNumber(INVENTORY_OBJECT);
- llSay (0, "Counted " + (string)total);
- vector relativePosOffset = <0.0, 1.0, 0.0>;
- rotation relativeRot = <0.0, 0.0, 0.0, 0.0>;
- vector rezPos = myPos+relativePosOffset*myRot;
- rotation rezRot = relativeRot*myRot;
- for(; start <= total; ++start)
- {
- llRezObject(llGetInventoryName(INVENTORY_OBJECT, 0), rezPos, ZERO_VECTOR, rezRot, 42);
- rezPos.y++;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement